not getting xml result in yahoo api in ajax?

kenzin

New Member
The below url not returns proper xml result. but in console i'm getting result like #document. can plz anyone say where i'm missing?\[code\]var reqUrl="http://where.yahooapis.com/geocode?q=chennai&appid=iuYcFArV34Hb60tLAmslu7Va.E0dDwq.wfbreCSjA2puximyH6bWtjVZ4AmPCTtd"; var result =""; $.ajax( { url : reqUrl, type : "GET", async: false, //dataType: "xml", //contentType :"application/xml", success : function (data) { result = data; console.log(data); }, error : function(xhr, ajaxoptions) { alert(xhr.status + " : " + xhr.statusText); } }); \[/code\]
 
Back
Top