giannis_maris Posted April 28, 2015 Report Posted April 28, 2015 I'm having trouble with the jc invovation code and Drupal. It looks like Drupal renders the code twice. <script type="text/javascript"> <![CDATA[//><!-- var m3_u = (location.protocol=='https:'?'https://www.myserver.com/www/delivery/ajs.php':'https://www.myserver.com/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=84"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //--><!-- var m3_u = (location.protocol=='https:'?'https://www.myserver.com/www/delivery/ajs.php':'https://www.myserver.com/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=84"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //--><!]]> </!]]></![cdata[//></script> We copy paste the raw invocation code in the websites source without using any plugins. Quote
andrewatfornax Posted April 12, 2017 Report Posted April 12, 2017 Hi @giannis_maris, Does this happen if you put the invocation code into an otherwise empty, plain HTML file? If not, then that confirms that this is an issue with how you are putting the code into Drupal (or how Drupal is handling it), and it somewhat beyond the scope of what we can help with... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.