MooTools Remote RSS Feed Parser

Phew!

I haven’t written on this blog since September 2010. I don’t really have much to say nowadays I guess.

That’s not why you’re here though, so let’s get down business.

I searched high and low whilst working on a Joomla module (Job Board) for a ready class that’ll work straight out the

box with the version of MooTools bundled with Joomla 1.5 (MooTools 1.12).

In the end, I built one from a couple of regular JavaScript snippets I found.
It uses the SimplePie PHP library to fetch the RSS feed and pass it on

to the MooTools class (Joomla also uses SimplePie for RSS).

The class – called MooFeed :P – also has an option: {remote:false} for when you’re fetching the feed from the same domain and want to bypass RSS fetching via PHP.

Usage

var myFeed = new MooFeed ('MyDivID', url, {
          remote: true
   });

The “remote” option defaults to true when not specified.

Download the full source including demo

View the live demo

Recent Tweets