View Full Version : Including my script call to an Ad service which calls their JS not working!! arghh.

07-19-2012, 10:29 PM
Hey all,

I am having serious problems getting this to work and I cannot figure out what the heck is wrong.

I must include a javascript call in which the src is a call our ad own company's ad service. The internal ad service in turn inserts a third party call to another js file. This wont' work and here is how it looks.

my script in my page.

<div id="uniquead">
<script type="text/javascript" language="Javascript" src="internal_ad_call"><script>

it then brings in something like this, exactly as you see it.

e11 = new Object();
e11.size = "90x100";
//-->document.write('<script type=\"text/javascript\" src=\"path_to_third_party_tags.js\"><\/script>');

Which then brings in bunch of javascript code that could write out iframe, script depending on certain criteria. It does have some document.writeln and document.write in this code.

I just cannot get it to work. Now, if I actually ONLY include this in my page (bypassing my internal ad services)

<script type="text/javascript" src="path_to_third_party_tags.js"><\script>

That works.. BUT I don't have direct access to that. That is served up via my internal call to my ad services...

So, my guess is the nested javascripts etc..

Any assistance would be helpful.

I tried: jquery appendto/append/html etc.... tried create script tag etc.. just nothing seems to work.