« I've found the puma | Main | Belfast Festival »

RSS in a static html page

I was asked to write something that could be cut and pasted into an html page that could display news from a central location on any number of pages. Previously we pulled news from a database and displayed it from a script, this would no longer work as this news had to be displayed on all manner of static pages, in all manner of locations, on all manner of servers.
I was playing around with a couple of wee widgets that may be useful to others who wish to use RSS in a static page.
First make a feed,
http://campusone.ulster.ac.uk/feed/feed.xml
Once you have a feed, go to this place where some nice person has made a very useful RSS viewer in javascript that can be placed anywhere in your html page.
http://publish.curry.com/rss/
Now all I need to do is write my own RSS viewer to do the same thing.
This however is a very quick and simple solution for those wanting to incorporate an rss feed into a static HTML page.

Comments

JavaScript.

*goes off and shoots himself in the head*

You killed Beowulf.
You bastards.

Is there another more obvious method of displaying an rss feed in plain HTML?

I use includes, I don't know how that squares with your requirement to use all manner of servers though.

Serverside includes I mean, just in case there are others...

Post a comment

The following bizarre question is in place to try to stop Comment Spam.