Veerasundaravel's Ruby on Rails Weblog

September 14, 2010

zRSSFeed – RSS Feeds Reader for jQuery

Filed under: jQuery — Tags: , , , , , , , , , — Veerasundaravel @ 12:55 pm

A jQuery plugin will read RSS feeds from any website url using the Google Feeds API. It produces structured HTML with in-built CSS classes for styling. Simple and easy to use.

Reference Url: http://www.zazar.net/developers/zrssfeed/

How to do:

1. Download the latest plugin  from the above mentioned URL and add it to your application directory.

2. Include the jQuery and zRSSFeed libraries.

<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#8221; type=”text/javascript”></script>
<script src=”jquery.zrssfeed.min.js” type=”text/javascript”></script>

3. Add a DIV tag where you wish the feed to display and give it an ID. There is no need to specify a class, this will be added.

<div id=”test”><div>

4. Now add the script to call the zRSSFeed plugin with the RSS url and any options. Our example gets 5 feeds from the Reuters site.

<script type=”text/javascript”>
$(document).ready(function () {
$(‘#test’).rssfeed(‘http://feeds.reuters.com/reuters/oddlyEnoughNews&#8217;, {
limit: 5
});
});
</script>
5. Finally now you can see the RSS feeds from the specified url.
Advertisements

2 Comments »

  1. that is great

    Comment by boxxy — October 6, 2010 @ 3:41 pm

  2. This has actually sparked up an idea in my mind. This really is a superb weblog article.

    Comment by network camera — December 5, 2010 @ 4:42 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: