So I am making an ajax request in jquery like this:
$.ajax({
url: url,
dataType: "jsonp",
jsonpCallback: 'callback',
success: function(data) {
alert(data.success);
}
});
This is what I want to receive from the url:
jsonp({
"success": true,
}
)
But I keep getting this error - ReferenceError: jsonp is not defined
what am I doing wrong ?
Thanks.
P.S: Testing on FF
jsonpCallbackoption. Does the server always return the response in that format, calling ajsonpfunction?