Widget:LoadRemoteContent: Difference between revisions

From Rangjung Yeshe Wiki - Dharma Dictionary
Jump to navigation Jump to search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 5: Line 5:
   crossorigin="anonymous"></script>
   crossorigin="anonymous"></script>
<script type="text/javascript" crossorigin="anonymous">
<script type="text/javascript" crossorigin="anonymous">
function load(url, element){
    req = new XMLHttpRequest();
    req.open("GET", url, false);
    req.send(null);
   
    element.innerHTML = req.responseText;
   
}
jQuery.noConflict();
jQuery.noConflict();
jQuery( document ).ready(function( $ ) {
jQuery( document ).ready(function( $ ) {
$("#<!--{$id}-->").load("<!--{$src}--> <!--{$hash}-->");
$("#<!--{$id}-->").load("<!--{$src}--> <!--{$hash}-->");
});
});
</script>
</script>

Revision as of 12:59, 17 May 2021

<script

 src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
 integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI="
 crossorigin="anonymous"></script>

<script type="text/javascript" crossorigin="anonymous">

function load(url, element){

req = new XMLHttpRequest(); req.open("GET", url, false); req.send(null);

element.innerHTML = req.responseText;

}

jQuery.noConflict();

jQuery( document ).ready(function( $ ) { $("#").load(" "); });

</script>