Reputation: 161
developing App on Android with Phonegap + Jquerymobile
i have a submit Form ..
after Submitting i have to reload the app in order to inject the new Offer added into the its category page.
when Ad-btn clicked and checking with the server through $.post .. success function --> reloading the page --> location.reload(true); ..going to the main page of the App .. the Header / Footer disappears ..
the Whole App in One html file with many data-role=pages...
even i tried to empty the div of its page-role before loading the whole app .. didn't work
Upvotes: 0
Views: 298
Reputation: 161
navigator.app.loadUrl("file:///android_asset/www/index.html", {wait:2000, loadingDialog:"Wait,Loading App", loadUrlTimeoutValue: 60000});
this line fixed the issue .. thanks to
https://stackoverflow.com/users/1887779/darin-kolev
Upvotes: 0