I need to make a JSONP call.
Ajax function call:
$.ajax({ url: myPath, dataType: 'jsonp', success: function(data) { alert("hello"); } });
call to getJSON function:
$.getJSON(myPath + '&callback=prova?', function(data) { alert("hello"); });
with getJSON (using & callback = prova to set the JSONP protocol) I get a 200 error. .ajax () also works. What for? I want to use getJSON here ...
source share