Possible Duplicate:
Parse RSS with jQuery
I want to read the dynamically generated RSS Feed using jquery.Or else is there any other way to read the feed.
Possible Duplicate:
Parse RSS with jQuery
I want to read the dynamically generated RSS Feed using jquery.Or else is there any other way to read the feed.
you can use the jQuery Feeds plugin to retrieve and display your feeds. It has nice features as cross-domain and templating support.
$('#feeds').feeds({
feeds: {
myfeed: 'http://path/to/your/feed'
}
});
you can use the jquery plugin jfeed to parse a rss feed and display the content
http://hovinne.com/articles/jfeed-jquery-rss-atom-feed-parser-plugin/
a function that displays the first 5 titles of a atom feed you would look like this
$(document).ready(function() {
jQuery.getFeed({
url: 'blog/articles.atom',
success: function(feed) {
for(var i = 0; i < feed.items.length && i < 5; i++) {
var item = feed.items[i];
$("div#feed").append("<div><a href='"+item.link+"'>"+item.title+"</a></div>");
}
}
});
});