Im trying to make a JSONP request that works in all desktop browsers but it doesn't in iPhone and Android.
Im doing a cross domain call to a webservice which returns a JSONP like:
myFunction({name : "Jonh", last : "Doe"})
$.ajax({
type: "GET",
crossDomain: true,
url: "http://192.168.1.41:8081/Service1/",
dataType: "jsonp",
processData : true,
headers: {
"Content-Type": "application/json"
},
jsonp : "myFunction",
jsonpCallback: "myFunction"
});
function myFunction(data)
{
alert("Hello world!");
}
It WORKS on DESKTOP but not in mobile!
Any idea?