Widget:LoadRemoteContent: Difference between revisions

From Rangjung Yeshe Wiki - Dharma Dictionary
Jump to navigation Jump to search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div id="<!--{$id}-->">
<div id="<!--{$id}-->"></div>
<script
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
  src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
<script type="text/javascript">
  integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI="
$(document).ready(function () {
  crossorigin="anonymous"></script>
$("#<!--{$id}-->").load("<!--{$src}--> #<!--{$hash}-->");
<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;
   
}
 
load("<!--{$src}-->", document.getElementById("<!--{$hash}-->"));
 
</script>
</script>
</div>

Latest revision as of 09:48, 19 May 2021

<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> <script type="text/javascript"> $(document).ready(function () { $("#").load(" #"); }); </script>