[thelist] little javascript help requested.

William Anderson neuro at well.com
Sun Apr 15 20:46:13 CDT 2001

----- Original Message -----
From: "Nicole Parrot" <nicole at parrot.ca>
To: <thelist at lists.evolt.org>
Sent: Monday, April 16, 2001 1:27 AM
Subject: Re: [thelist] little javascript help requested.

> ----- Original Message -----
> From: "Warden, Matt" <mwarden at odyssey-design.com>
> > > Can it even be done?
> >
> > Ya, but it doesn't work like that. It isn't reading in a file... the
> > *IS* that javascript file. In other words, that javascript file is just
> > bunch of document.write's that write the syndicated content onto
> > and on whatever site that javascript is called.
> >
> > dig?
> yes, I dig.. but it's killing the whole implementation that I currently
> have.. sigh...
> I was planning on reusing that Site A html file for a few things, but I
> won't be able to reuse the javascript file.. Oh well, back to the drawing
> board...

why not dynamically generate a JS file from your html using CGI?

e.g. site B references http://sitea.com/cgi-bin/jsgen?page=/a.html&ext=.js
site A generates a bunch of document.writes for each line of HTML between
body tags, the page when rendered from site B includes the HTML from site A
(although image references would have to be rendered absolutely instead of

  ___  ___ __ _________ @well.com  William Anderson - www.well.com/~neuro
 / _ \/ -_) // / __/ _ \|     "All your base are belong to us. You are on
/_//_/\__/\_,_/_/  \___/|     the way to destruction." -- CATS, Zero Wing

More information about the thelist mailing list