UI Deploy

Curated, Short, Web UI Dev we Love.

How to prevent jQuery Mobile page navigation

Lets say we have a jQuery Mobile that requires user to authorize itself and lets say that user had done that successfully. But here comes a problem. When working with jQuery Mobile, if Ajax is turned on, every page loaded into the DOM is a part of a single page and jQuery Mobile acts as a rooter which display correct content depending on our needs. If we press back button after successful authorization process we will end up at a login page again.

view source

Advertisement