[thelist] little javascript help requested.

Warden, Matt mwarden at odyssey-design.com
Sun Apr 15 19:21:37 CDT 2001

> Example of what I have in mind:
> site A has a little HTML file that is "published".
> Site B wants to use it on its main page.
> Site B puts in code that resemble this:
> <SCRIPT LANGUAGE="Javascript"
> SRC="http://www.siteA.net/outnews/news.js"></SCRIPT>
> news.js should be doing the following.
> read in the file from site A
> do a document.write onto the user's browser.
> Can it even be done?

Ya, but it doesn't work like that. It isn't reading in a file... the file
*IS* that javascript file. In other words, that javascript file is just a
bunch of document.write's that write the syndicated content onto whereever
and on whatever site that javascript is called.



More information about the thelist mailing list