-
☆ A M B ☆
- 24,524 Posts
That is really strange. While I have no answer to your question, I will say that I use a snippet for such things, using the $modx->regClientStartupScript() functions.
$src1 = '
<script type="text/javascript">
amazon_ad_tag = "affiliateid";
amazon_ad_width = "728";
amazon_ad_height = "90";
</script>
';
$src2 = '<script type="text/javascript" src="http://www.assoc-amazon.co.uk/s/ads.js"></script>';
$modx->regClientStartupScript($src1);
$modx->regClientStartupScript($src2);
Could it be a your host server that’s preventing <script> tags with the src attribute?
Thanks Susan, Raymond.
You put me on the right track - not the host server but my firewall interfering in non-firewall matters (ad filtering). Grrrr!