How to fetch Rss Feed by Jquery

2.75 Rating, Out of: 5 Votes: 121 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

How to get RSS Feed by Ajax easily?

Well this is cool plugins to fetch instant, easily feed display on your website by jquery. Developer can use it any website. its so handy to use. here im going to explain how it will work

for this you need Google AJAX Feed API click here to get

now use following codes under your page <head>

<script src="http://www.google.com/jsapi?key=[your API key]" type="text/javascript"></script>
 <script src="jquery-1.3.1.js" type="text/javascript"></script>
<script src="jquery.gfeed.js" type="text/javascript"></script> 
 
<script type="text/javascript">
 
$(document).ready(function() { 
        $('a.feed').gFeed( { target: '#feeds', tabs: true } ); 
    }); 
</script>

 

Options

Options can be passed to the gFeed method using an object literal. The following options are supported:

target
jQuery selector which identifies where the feed content should be inserted on the page.
title
Allows you to provide a specific feed title to override the markup.
url
Allows you to provide a specific url for the feed (which means you don’t have to use anchors).
max
Identifies the maximum number of feed items to display for a given feed. The default is 5.
tabs
true if feeds should be rendered using Google’s tabbed drawing mode.