[thelist] Brain phart

Anthony Baratta anthony at baratta.com
Fri May 26 17:35:46 CDT 2006


OK -so basically you want to host a page that any one can add a link to and put an ad on their page. The server side code of the AD file is not important and therefore, you need to us JS to do a client side "include".

Yes?

If so, then code your ASP page to output the HTML that you want have included into the page. Once you have that structured the way you want - change the output type of the asp page to "text/javascript" and make sure all html output from the AP page looks like this:

   response.write "document.write('html output goes here');" & vbCRLF

That will send back to the browser the HTML you want included, and the JS code will execute it and write it to the location where the JS "include" was added to the page.

Hope that makes sense.




More information about the thelist mailing list