I'm trying to incorporate the creation of an exterior PHP script right into a Joomla article using Mootools but cannot get results This is exactly what I've within the supply of my article Code:

<div id="opt-out"></div>
<script>
window.addEvent('domready',function() {
  $('opt-out').load('http://analytics.xyz.com/index.php?module=CoreAdminHome&amp;action=optOut');
});
</script>

Have most likely got the syntax drastically wrong so any help gratefully appreciated

Check it in Mozilla firebug it should be giving some javascript error.Coressponding to security of the breach of same origin policy. You can't call an exterior script using javascript.