Calling external PHP file with Mootools
I am attempting to include the output of an external PHP script into a Joomla article using Mootools but cannot get it to work This is what I have in the source of my article Code:
<div id="opt-out"></div>
<script>
window.addEvent('domready',function() {
$('opt-开发者_如何学Goout').load('http://analytics.xyz.com/index.php?module=CoreAdminHome&action=optOut');
});
</script>
Have probably got the syntax completely wrong so any help gratefully appreciated
Check it in Mozilla firebug it must be giving some javascript error.Coressponding to security of a breach of same origin policy. You cannot call an external script using javascript.
精彩评论