mercredi 16 août 2017

Android browsers and ajax jsonp

I have a problem with browsers on Android devices (tested on Samsung phones at least).

I have tried a lot of different approaches, latest this:

$.ajax({
  dataType: "jsonp",
  method: "GET",
  url: "http://ift.tt/2wgFsel",
  crossDomain: true,
  success: function(result){
    alert("uu");
  },
  error: function() {
    alert("error");
  },
  complete: function() {
    alert("comp");
  }
});

I do not get any of the alerts at all. It works on iOs and desktop devices. Am I missing something or what?

Thanks!




Aucun commentaire:

Enregistrer un commentaire