I have a simple application so far that consists of a homepage and a second page. Once requested by the user, a button on the homepage will load the second page via
$.mobile.changePage( "#map-page");
On the second page, i am using WebSQL to save the data and such, and once again upon user request, a button loads the homepage again via
function saveInfo() {
navigator.notification.alert(
'All information has been saved', // message
alertDismissed, // callback
'Saving', // title
'Done' // buttonName
);
}
function alertDismissed() {
$.mobile.changePage( "#page1", {
reloadPage:true
});
}
Whilst this does redirect to the homepage, it doesn't seem to "reload" it, as the functions on that page dont work and there is a map that doesn't load which is set to, on the page loading.
I was wondering if anyone has any suggestions regarding this issue?
I would like it to essentially return to the homepage as if the user has just opened the application, ie, the back button wouldn't take them back to the previous page?
via jQuery Forum http://ift.tt/1yleIG0
0 التعليقات: