jFeed: JavaScript jQuery RSS/ATOM feed parser plugin - jf-hovinne.blog

jFeed: JavaScript jQuery RSS/ATOM feed parser plugin - jf-hovinne.blog


jFeed: JavaScript jQuery RSS/ATOM feed parser plugin

Par Jean-François, dimanche 15 juillet 2007 à 21:00 :: Dev :: #132 :: rss

I needed a lightweight JavaScript feed parser based on jQuery and couldn't find one, so I wrote jFeed yesterday.
Thanks to jQuery, it was quite easy and fun to do.

jFeed currently parses RSS 0.91, 0.92, 1.0, 2.0 and Atom 1.0 feeds.

Usage:

jQuery.getFeed(options);

options:

* url: the feed URL (required).
* data: data to be sent to the server. See jQuery.ajax data property.
* success: a function to be called if the request succeeds.
The function gets passed one argument: the JFeed object.

Example:

jQuery.getFeed({
url: 'rss.xml',
success: function(feed) {
alert(feed.title);
}
});

JFeed properties:

   * feed.type
* feed.version
* feed.title
* feed.link
* feed.description
* feed.language
* feed.updated
* feed.items: an array of JFeedItem

JFeedItem properties:

   * item.title
* item.link
* item.description
* item.updated
* item.id

jFeed is dual licensed under MIT/GPL.
Download jFeed

Examples are provided in the archive, as well as a basic PHP proxy (testing purposes only) for loading external feeds.

Note: the feed must be sent as XML, thus the content-type needs to be specified as text/xml or application/xml, see Specifying the Data Type for AJAX Requests.

Trackbacks

Aucun trackback.

Les trackbacks pour ce billet sont fermés.

Commentaires

Aucun commentaire pour le moment.

Ajouter un commentaire

Les commentaires pour ce billet sont fermés.


Responses

Please Login to respond

Get Gleanr!

What is Gleanr?

Gleanr is the networking engine for digital-age professionals. Get impact (& income!) in the information streams you care about.

How does it work?

Your custom Gleanr channels automate information flow relevant to you. All you do is "click" - we do the rest (instant capture, indexing, and networking).

What is the value?

Gleanr is the only web service where professionals can manage and monetize their expertise.

Is this more web 2.0?

Yes, but for work. Now you can capitalize on your unique ability to filter and enrich professional information streams.

Show me!

Explore the public parts of professional information streams here, or take the Gleanr Tour.

Sign me up!