posted 5 years ago
I have completed the phonegap application for the iPhone and Android.
I have facing the issue in the android application.
code is as follow
super.loadUrl("file:///android_asset/www/MyPage.html");
// Set the default time for loading the URL
this.setIntegerProperty("loadUrlTimeoutValue", 70000);
i have done this to load url..
after loading the page in init of js I send post request to server using ajax method and wait for response.
If response returned within 1 min., everything works fine but if response is not returned within 1min
i.e. 60000 another request is sent to server. And I am not getting from where this request is sent.?
as a R & D part i have added following parameter in ajax request in java script
timeout: 80000
if i set timere below 60000 it works fine but if i set above 60000 then my js is sending second request to server.
after this it neglate both the responses which server sends and shows timeout message
I am using phonegap-1.2.0.js and jquery-1.7.1.min.js
iPhone application work quite properly.
I have facing the issue in the android application.
code is as follow
super.loadUrl("file:///android_asset/www/MyPage.html");
// Set the default time for loading the URL
this.setIntegerProperty("loadUrlTimeoutValue", 70000);
i have done this to load url..
after loading the page in init of js I send post request to server using ajax method and wait for response.
If response returned within 1 min., everything works fine but if response is not returned within 1min
i.e. 60000 another request is sent to server. And I am not getting from where this request is sent.?
as a R & D part i have added following parameter in ajax request in java script
timeout: 80000
if i set timere below 60000 it works fine but if i set above 60000 then my js is sending second request to server.
after this it neglate both the responses which server sends and shows timeout message
I am using phonegap-1.2.0.js and jquery-1.7.1.min.js
iPhone application work quite properly.

Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |