Many Pies

Many Pies

Friday, December 12, 2008

Displaying feeds using javascript

I've been very pleased to find a site which gives you scripts for displaying feeds using javascript. They even let you run the scripts from their own site. I wanted to tweak them so I copied them and run them off our own site. You've got quite a few options when you call the scripts, but I wanted to do a couple more tweaks:
  • Images with relative URLs in the feed (though not invalid, but not advised) needed the domain adding to the start.
  • Displaying the first paragraph of the feed, as the feed is normally full text.
The code is very clear and those were fairly easy changes to drop in.

1 comment:

Anonymous said...

Never used javascript before, but if it's easy I might try it for our site. Seems to work faster than Feedburner's Buzzboost which we use at the moment and takes a while to load...