rss - Rendering mRSS feed in Chrome using jsapi -
using google feed api parse , render mrss feed. having issue in chrome doesn't show content...
jsfiddle
any idea why that?...
function initialize() { var feed = new google.feeds.feed("http://www.wdcdn.net/rss/presentation/library/client/robotrepair/id/a51a000c78e6997a1b7d422247cad813"); feed.setnumentries(99); feed.load(function(result) { if (!result.error) { var container = document.getelementbyid("feed"); (var = 0; < result.feed.entries.length; i++) { var entry = result.feed.entries[i]; var img = document.createelement("img"); if (entry.mediagroups) { var imgsrc = entry.mediagroups[0].contents[0].thumbnails[0].url; img.setattribute("src", imgsrc); container.appendchild(img); } } } }); }
Comments
Post a Comment