RSS Feeds via JavaScript

Alan Levine, Dec 15 2003

This service has been shut down. It is old and is causing problems on other sites. Please see the new version of Feed2JS.

Other Solutions

There are many ways to skin a cat, so here are some other tools that can take an RSS feed as a parameter and return a JavaScript source file for inclusion in any web page

Version History

Jan 20, 2005 RSS2JS is closed down.

Mar 23, 2004 Doah! The build.php script had an error that wrote an extra "/feed/" in the file path for the rss2html.php link.

Dec 31, 2003 Moved this entire site to a new server (no change in URLs or locations, just hopefully a speedier host!)-- all cached feeds were dropped in the move. Happy New Year!

Dec 15, 2003 Minor fixes to take care of uses of this script on other servers. The re-direct for a missing RSS URL (nosource.html) had a suggested format that referred to the script on this server only; now it points to a new version (nosource.php) that dynamically generates the URL for uses elsewhere. Likewise, our "build" script (build.php) that generates sample JavaScript code was referencing just my server; now it too does it dynamically.

Dec 4, 2003 Fixed a bug that was causing incorrect item date displays from RSS 2.0 feeds, thanks to Todd Slater for bringing it to our attention. A revamp of this web page and some documentation for the Onyx parser is coming soon.

Oct 14, 2003 Added code to deal with RSS tags of <guid> elements for item URLs and <pubDate> for RSS 2.0 item published dates. Also added a trp to post "no title" if no title tag exists for items

Oct 13, 2003 Cleaned up code for naming cache files, with many feeds from this site, many were be overwritten by similar feeds names from other sites (previously, the cache fiels were base don the path of the feed, now it is the whole URL)

Sep 15, 2003 Changed Javascript output for items link with a TARGET= option so items would open in a separate browser window.

Aug 8, 2003 Added a NOSCRIPT alternative that provides a link to a HTML version of the feed.

May 14, 2003 Added the web form above for generating previews and the JavaScript syntax for feeds.

May 14, 2003 Added item posting date feature suggested by D'Arcy Norman (who also cleaned up some loop variable madness), and adding channel option for title only display.

May 13, 2003 Update to take care of accessing variables from $_GET array, and add optional paraemters for output control, thanks to suggestions by Randy Brown.

May 7, 2003 modifications in output and cache file setting thanks to D'Arcy Norman.

May 5, 2003 first version