jquery - Why calling RSS feeds from ajax not working? -
i trying code this rss feed of football.
but when calling it, giving error below
xmlhttprequest cannot load http://ibnlive.in.com/ibnrss/rss/sports/football.xml.
no 'access-control-allow-origin' header present on requested resource.
origin 'http://localhost:8888' therefore not allowed access.
what problem call??
my code call under
$.ajax({ type: "get", url: "http://ibnlive.in.com/ibnrss/rss/sports/football.xml", datatype: "xml", success: xmlparser }); function xmlparser(xml){ console.log(xml); var xmlcode=''; $(xml).find('item').each(function(){ xmlcode+="<li>"+$(this).find('title').text()+"</li>"; }); $('.headline-ul').html(xmlcode); }
is there else needed use field?
please follow below links may in resolving issue
displaying feed content using jquery
returning xml ajax requestfor rss feed
cross-origin resource sharing (cors) ajax requests between jquery , node.js
Comments
Post a Comment