With a local file JSON I get data by $.getJSON
and output with jQuery mobile
$('body').off('tap').on('tap', 'ul li', function(event) {
var jqxhr = $.getJSON("one.json", function(data) {
console.log("success");
alert(data.name + " " + data.one);
$("#json").html(data.name + " " + data.one);
}).done(function() {
console.log("second success");
$("#d1").html("second success");
}).fail(function(jqxhr, textStatus, error) {
var err = textStatus + ', ' + error;
console.log("Request Failed: " + err);
$("#d2").html("Request Failed: " + err);
}).always(function() {
console.log("complete");
$("#d3").html("complete");
});
});
This works well on a computer and HTC but on Samsung devices it's not working. On samsung not error,output empty div