i have a hard time getting $.mobile.changePage() working properly.
things like:
i have a page call “report outage” and there is a add button on it.
when i click add button, the app will go to another page named “new outage”,
and then i will enter some information and submit it.
afer that i go back the “report outage” again, and click the add button, but
every time i got the revised page other than the original page.
i am using the $.mobile.changePage() to transfer “report outage” to “new outage”.
any suggestion will be a great help!
You can set the
reloadPageoption totruefor the$.mobile.changePage()method. This will only work if you are loading an external page, not an internal one (multi-page template).For Example:
Documentation: http://jquerymobile.com/demos/1.2.0/docs/api/methods.html