ajax feed aggregator
ajax feed aggregator
I currently have a feed aggregator that displays a feed in an li.. what i would like to happen.. is have the li actually be the url using location.href
if anyone has any idea how this could be done, that would be awesome..
-
$(function() {
$.ajax({
type: "GET",
url: "http://www.msn.com/rss/alsoonmsn.aspx",
dataType: "xml",
success: function(rss) {
strRSS = "<h4>" + $("/rss/channel/title",rss).text() + "</h4>";
$("/rss/channel/item/title:lt(5)",rss).each(function(i) {
strRSS += "<li><a href='";
strRSS += $("/rss/channel/item/link:eq(" + i + ")",rss).text();
strRSS += "'>";
strRSS += $(this).text();
strRSS += "</a><br />";
strRSS += ($("/rss/channel/item/description:eq(" + i + ")",rss).text()).substring(0,200) + "...</li>";
});
$("#feed_me").html(strRSS);
}
});
});
Thanks a bunch