[thelist] Javascript strings

Warden, Matt mwarden at mattwarden.com
Thu Aug 2 11:00:19 CDT 2001


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?





More information about the thelist mailing list