Widget:IncludeTibContentOnClick: Difference between revisions
Jump to navigation
Jump to search
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 1: | Line 1: | ||
<div id="tibContent"></div><script> | <div id="tibContent"></div><script> | ||
var loadNewContent = function { | |||
$.ajax("<!--{$page|escape:'url'}-->/tib #tibContentToLoad", { | |||
success: function(response) { | |||
$("#tibContent").html(response); | |||
} | |||
}); | |||
}; | |||
$("#tibContent").on('click', loadNewContent); | |||
</script> | </script> |
Revision as of 11:36, 3 August 2021
<script>
var loadNewContent = function { $.ajax("/tib #tibContentToLoad", { success: function(response) { $("#tibContent").html(response); } }); };
$("#tibContent").on('click', loadNewContent);
</script>