da ultimate feedz reader
HTML
<script src="http://dl.dropbox.com/u/267716/js/jquery.jgfeed.js"></script>
<script src="http://dl.dropbox.com/u/267716/js/jqueryTimers-1.2.js"></script>
<script type='text/javascript' src='http://taskilio.com/scripts/jquery.tmpl.min.js'></script>
<div id='result'></div>
<script id='feedTmpl1' type='text/x-jquery-tmpl'>
<div>
<h4>
<a href='${link}'>${title}</a>
</h4>
<em>${publishedDate}</em>
<p>${contentSnippet}</p>
</div>
</script>
<script id='feedTmpl2' type='text/x-jquery-tmpl'>
<div>
<h4>
<a href='${link}'>${title}</a>
</h4>
<em>${publishedDate}</em>
<p>${contentSnippet}</p>
</div>
</script>
CSS
a{text-decoration:none;}
JavaScript
var feeds = [
{
'url': "http://hvg.hu/rss",
'callback': function(feeds){
$('#feedTmpl1').tmpl(feeds.entries).appendTo('#result');
}
},
{
'url': 'http://twitter.com/statuses/user_timeline/26767000.rss',
'callback': processTwitter
}
];
function processTwitter(feeds){
$('#feedTmpl2').tmpl(feeds.entries).appendTo('#result');
}
getFeed($('#result'), feeds);
function getFeed(object, feeds) {
$.each(feeds, function(index, feed) {
$.jGFeed(feed.url, function(feeds) {
feed.callback(feeds);
}, 10);
});
};