I have this url
call. the url returns a json object as expected (direct browser call) but when I do that via ajax with the follow lines
$.ajax({
url: url,
type: "GET",
dataType:"jsonp",
success: function(data) {
alert(data);
},
error : function(error) {
alert("no good "+JSON.stringify(error));
}
});
it returns me
no good {"readyState":4,"status":200,"statusText":"success"}
I know there's others similar questions on stackoverflow, but nobody seems solved it.
That suggests that the HTTP request was successful but the attempt to parse the data was not.
i.e. that the data was not formatted as JSONP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With