user1712576
user1712576

Reputation: 141

$.mobile.changePage($("") always load changed web page

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!

Upvotes: 0

Views: 431

Answers (1)

Jasper
Jasper

Reputation: 75993

You can set the reloadPage option to true for the $.mobile.changePage() method. This will only work if you are loading an external page, not an internal one (multi-page template).

For Example:

$.mobile.changePage("some-external-page.html", {
    reloadPage : true
});

Documentation: http://jquerymobile.com/demos/1.2.0/docs/api/methods.html

Upvotes: 1

Related Questions