Widget:LoadRemoteContent: Difference between revisions

From Rangjung Yeshe Wiki - Dharma Dictionary
Jump to navigation Jump to search
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div id="steinertDictDefinition"></div>
<div id="<!--{$id}-->"></div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script type="text/javascript">
<script type="text/javascript">
function load(url, element){
$(document).ready(function () {
    req = new XMLHttpRequest();
$("#<!--{$id}-->").load("<!--{$src}--> #<!--{$hash}-->");
    req.open("GET", url, false);
});
    req.send(null);
   
    element.innerHTML = req.responseText;
}
load("<!--{$src}-->", document.getElementById("<!--{$hash}-->"));
</script>
</script>

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>