amazon web services - Not able to get HTTP GET for Freebase search url -
i using freebase search url know query classification. have send jquery request in javascript follows, not getting response.
var searchvalue = document.getelementbyid("searchtext").value; var url = "http://www.freebase.com/api/service/search?query=india"; $.getjson(url,function(data){alert(data)});
if place url (http://www.freebase.com/api/service/search?query=india) in browser able json response. 1 faced problem.
thanks, sathi
you won't able use $.getjson because of browsers' same origin policy. however, freebase.com apis support jsonp should able this:
$.ajax({ url: "http://api.freebase.com/api/service/search" data: {query:"india"}, datatype: "jsonp", success: function(data) { console.log("success", data); } });
Comments
Post a Comment