this error is driving me crazy.
While using jquery 2.0.3 it works, when I change to jQuery 1.10.2 it doesn't !!! I need to use jQuery 1.10 in order to use jquery mobile panel widget I don't know what is wrong, the json is a valid jso I test it.
Here is the code: (I changed the html for an alert)
$(document).on('pageinit', "#news_list", function () {
$.ajax({
type: "GET",
crossDomain: true,
url: "http://app.virtual-competiciones.es/api/news/getnews?num=20",
headers: { "Accept-Encoding": "gzip" },
dataType: 'json',
cache: false,
success: function (data) {
var result = data;
alert("ok");
},
error: function (xhr, status, error) {
alert("ERROR - xhr.status: " + xhr.status + '\nxhr.responseText: ' + xhr.responseText + '\nxhr.statusText: ' + xhr.statusText + '\nError: ' + error + '\nStatus: ' + status);
}
});
return false;
});
The error I'm getting is undefined (No Transport)