开发者

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&amp;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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜