الاثنين، 13 أبريل 2015

jQuery mobile, reload page on a button click, page not behaving as expected on load

By Unknown   Posted at  5:12 م   jQuery Forum No comments

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

Related Posts

About the Author

Nulla sagittis convallis arcu. Sed sed nunc. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.
View all posts by: BT9

0 التعليقات:

Back to top ↑
Connect with Us

© 2013 jQuery Forum. WP Mythemeshop Converted by Bloggertheme9
Blogger templates. Proudly Powered by Blogger.