, . , JSON, JSONP . :
callbackfn({
"firstName":"John",
"lastName":"Doe"
});
jsonp: false jsonpCallback dataType: 'jsonp' - , jsonp. , JSONP - -, jsonpCallback :
$.ajax({
type: "get",
dataType:'json',
params:jsonData,
headers: { "api_key": "u5FocU4xLq2rBfZ1ZSV8o81R2usYzUEM3NaCinnV"},
url: "http://localhost/url?name=xxx&email=xxxxxx@gmail.com",
success:function(data){
callbackfn(data);
},
error: function(jqXHR, textStatus, errorThrown){
alert(textStatus + " and<br> " + errorThrown);
}
});