NOTE: I edited this with more info of what I am getting back from the third party.
In a nutshell I have a task to include a JS ad tag that calls to our internal ad server mechanism which then retries a third party script that document.writes to their external file... it will not work in IE. Someone mentioned to me that nested document.writes will not work in IE. I have tried various things.. appendTo / writeln / breaking up the script tag / decoding the script tags etc.. nothing seems to work. Since this is somewhat new to me, perhaps I am overlooking the obvious.
This is what it looks like:
my html:
<script language="JavaScript" type="text/javascript">
document.write('\x3Cscript type="text/javascript" src="_some_Path_to_internal_ad_server">\x3C/script>';);
</script>
That call ends up bringing in some code that looks like this: just as you see, no enclosing script tags.
tl1 = '989';
tl2 = 'xnlll';
document.write('<script type=\"text/javascript\" src=\"_some_Path_to_third_party.js\"><\/script>');
Now, that "_some_Path_to_third_party.js" brings in some js code that has document.writes and document.writeln
I am writing this off the top of my head, so I don't remember exactly how the script tags are broken up, but I don't believe that is the issue. I believe it is the nested document.writes in IE.
I tried various things and even laid out my first script call right in my page. No document.writes -- just
<script language="JavaScript" type="text/javascript" src="_some_Path_to_internal_ad_server">
No dice.
BUT a direct call to the external js did work (removing my call to my internal ad server which subsequently calls the third party call), ala:
<script language="JavaScript" type="text/javascript" src="_some_Path_to_internal_ad_server">
Anyone have experience dealing with anything likes this and how to overcome it?