Reputation: 43863
In my jquery mobile app, I want to run a function when the default page shows. This code works
$(document).unbind("pageshow").on("pageshow","#login-page",function(){
GLOBAL_DATA.user = null;
alert("reset");
});
But the problem is when I click a button to go to another page, then when I click the back button to go back to the default page, the pageshow function does not trigger. How can I get it to do that?
Thanks
Upvotes: 0
Views: 1046