I used a jQuery library called jFeed to parse and display my rss feed on my personal website. It worked fine at first, but after checking it just doesn't display anything except Internet Explorer, where it works fine.
After checking the javascript console using Firebug in Firefox, an error is displayed on the XML tab:
XML parsing error: element not found. Location: moz-nullprincipal: {3f8a0c62-32b4-4f63-b69c- 9ef402b40b64} Row number 1, column 1: ^
Although I have no idea what to do with this information. Here is the code I used to get the rss feed and display it (it's almost the same as the example provided by the jFeed website):
jQuery.getFeed ({url: ' http://sammarshalldesign.co.uk/blog/wordpress/?feed=rss2 ', success: function (feed) {
var html = '';
for(var i = 0; i < feed.items.length && i < 5; i++) {
var item = feed.items[i];
html += '<h3>'
+ '<a href="'
+ item.link
+ '">'
+ item.title
+ '</a>'
+ '</h3>';
html += '<div>'
+ item.description
+ '</div>';
}
jQuery('#feed').append(html);
}
});
Any help would be really appreciated.
source
share