Hello everybody !
I try to make an AJAX call following this example :
http://wiki.modxcms.com/index.php/Use_AJAX_with_modxAPI ("The Full MODx solution").
The problem I'm facing is that when I'm calling the resource which contains the JavaScript, it isn't loading it at all. In fact, when I look at the source code, the ModX tag isn't interpreted : I'm still getting :
<script type="text/javascript" src="[[~63]]"></script>
The resource number 63 which contains the JavaScript has a template set to "empty" and a content type set to "javascript". I'm using JQuery, the script is as follow :
$(function() {
alert("ok");
});
Thanks in advance for your help !
[ed. note: jeremy-p last edited this post 11 years, 11 months ago.]