This is my request :
$.ajax({
url: 'http://www.mywebsite.com/folder/mypage.aspx',
dataType: 'jsonp',
success: function(result) {
console.log(result);
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus + " - " + errorThrown);
}
});
and from mypage.aspx (on the .cs) I put out this :
Response.Write("{ html: '" + "Hello I'm a string" + "'}");
but I get parsererror - Error: jQuery17100985457205879069_1330089260383 was not called, so error function is called…
Where am I wrong?
You have to put your response into a “function”. It’s name is stated in
callbackGET parameter, and you have to use it. So result will beso easily, change your line to