I have a small app made in cordova using beacons plugins and I want to send get request to a given page once beacons are discovered; I cannot send get request to my server using below code with jsonp; I tried different options but none of them worked;
$.ajax({
type: "GET",
async: false,
dataType: 'jsonp',
jsonp: 'callback',
jsonpCallback: 'callbackFunction',
url: "http://xxx",
crossDomain: true,
success: function(json){
alert("success");
},
error: function(){
alert("fail");
}
});