The code goes like this:
$.ajax({
url: "http://server.com/rest",
dataType: "jsonp",
success:function(d, t, x) {
console.log(d);
},
error:function(x, t, e) {
console.log(x.responseText);
}
});
Firebug shows that I am receiving a response but the code above only logs "undefined". Firebug also shows that the http status code is 200. Can anybody tell me how to retrieve the response?