Hello,
have any of you worked out a async document.write that works with ad-hosting-services? My employer uses AdTech, and some times they load ads from yet another ad-hosting-service, so we get many layers of document.write

It works fine for the first ad-service to do this stuff:
[code]
var oldWrite = document.write,
       content = '';
document.write = function(d) {
        content += d;
}
[/code]

But when the script from the AdTech loads, it loads yet another script that uses document.write from another service. And that document.write goes back to its old self.
Like this:
Initial call:
<script src="path-to-adtech.js"></script>
In that script its:
document.write("<script src=\"another-provider.js\"><\/script>");
And in that script:
document.write("Print out fancy ad");

So what I want is a document.write that stays persistant over all the layers.


Anyone encountered this? Solutions? Hacks?


Best regards,
Mads Erik Forberg

--
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to