Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

How to Cancel the action of navigating to a previous screen when the Backbutton is clicked

I don't think it's possible to Disable the back button but can one abort the action of going back to the previous screen after the Back button is clicked.

Typical use would be to save some edited data before returning to previous screen

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to Cancel the action of navigating to a previous screen when the Backbutton is clicked

Hi Pete,

1) If you mean device Back button you can catch its click event and do what you need (for example, save some data entered on page). You can find an example here: https://getsatisfaction.com/apperyio/...

2) If you mean Header Back button, do not use standard Back button, use the usual Button instead. On click you can save data and then navigate.

3) You can merge these approaches, i.e. if you need to save some edited data before returning to previous screen, you can use Page transition events (http://jquerymobile.com/demos/1.2.0/d...) to catch the moment you leave a page and do what you need.

Return to “Issues”