ios - Ajax does not work when the app is closed and opened again -



ios - Ajax does not work when the app is closed and opened again -

i have problem phonegap build, version 3.6. have app loads content via ajax. works android emulator , compiled on android doesn't work on ios

everything works fine firts time execute app, when close app , reopen it, app hanging on ios , not load ajax's content. alert message shown, see code below:

the code is,

//carga la lista con ajax $.ajax({ type: "get", url: localjson+'?cache='+nocache, datatype: 'json', cache : false, timeout: 5000, success: function(data, status) { cargarprogram(data); }, error: function(data) { alert ("ko carga programa"); } });

i tried prevent cache , doesnt' work,

any idea, hard find going on,

thanks, best regards, cristian

ios ajax cordova

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -