internet explorer 8 - Javascript document.write in IE 8 -


This is heading me, chasing this whole day, we have an ad server that has a The script makes a call that then incorporates the code.

e.g. The Adveruver page is called in an iframe:

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script src = "http: // adserver / ad? S = 728x90" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Javascript given by script call above:

  document.write ('& lt; script type = \' text / javascript \ src src ' Http://partner.googleadservices.com/gampad/google_service.js\'>\n '); Document.write ('& lt; / script & gt; \ N'); Document.write ('& lt; script type = \' text / javascript \ '& gt; \ n'); Document.write ('GS_googleAddAdSenseService ("ca-pub-xxxxxxxxxxxxxxxxxxx"); \ N'); Document.write ('GS_googleEnableAllServices (); \ N'); Document.write ('& lt; / script & gt; \ N'); Document.write ('& lt; script type = \' text / javascript \ '& gt; \ n'); Document.write ('GA_googleUseIframeRendering (); \ N'); Document.write ('& lt; / script & gt; \ N'); Document.write ('\ n'); Document.write ('& lt; script type = \' text / javascript \ '& gt; \ n'); Document.write ('GA_googleFillSlotWithSize ("ca-pub-xxxxxxxxxxxxxxxxxx", "global_728 x90", 728, 90); \ n'); Document.write ('& lt; / script & gt; \ N');  

The problem is that the code does not work in IE 7 and 8 but it works fine in Chrome, Firefox, Safari etc.

The "error" returned by IE is "Object Object" and it is running through IE "Developer Tools" either does not help.

I have tried a ton of things to work on it,

It seems that when there is a GS_ or GAA function, I doubt that IE can prevent external scripts from writing from the page. Trying?

Is there an error or why there might be a solution?

I think this is just because Chrome, Firefox, Safari etc., they are fast browser, depending on whether the file is downloading the file http://partner.googleadservices.com/gampad/google_service.js , while IE is still Also dragging the file at that point. Maybe you can include JS file contents anywhere in your own JS?


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -