I get data from the local JSON file using the $.getJSON method and output it using 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" ); }); }); 

Everything seems to be working, but not on samsung. On the PC and htc no problem. What could be the catch, which way to dig?

  • towards Android versions to dig, and corresponding changes in WebView - Vladyslav Matviienko
  • @metalurgus, at least approximately what could be the problem? - zkolya

0