[thelist] Javascript strings
Pearson, John
JOHN.PEARSON at eia.doe.gov
Thu Aug 2 12:44:05 CDT 2001
check out moreover.com they provide the news sources but also a variety of
examples of how to insert the information in your page, either js, xml or other
alternatives.
-----Original Message-----
From: Warden, Matt [mailto:mwarden at mattwarden.com]
Sent: Thursday, August 02, 2001 12:02 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Javascript strings
Not really. What's your target audience? Specifically, what browsers do
you need to support?
The only well-supported form of syndication with javascript that I know
about is the <script src="..." ...> method. Where you'd have something
like this on your page:
<head>
...
<script src="http://newspapersite.com/syndication/headlines.js"
language="JavaScript" type="text/javascript">
<script language="JavaScript" type="text/javascript">
// your parsing stuff here
</script>
</head>
The headlines.js file on their server would be a script they write that
basically loops through and puts their headlines into a JavaScript array
that you can use in your own script. However, most sites that use this
type of syndication just do document.writeln()s, which is unfortunate.
hth,
--
mattwarden
mattwarden.com
On Aug 2, Matthew Goldfield had something to say about [thelist] Javascript...
>I am trying to write a script that will dynamically
>pull headlines from a newspaper page to post them
>somewhere else. I have written the script, but I
>don't know the command that can pull another page's
>code as a string or array of strings so that they can
>be parsed. Does anyone know a way to do this?
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list