Redirection with back button support in jQuery mobile

This problem I meet when I implement socialengine theme base on jQuery mobile framework. This is nice framework for mobile but it make me crazy since it doesn’t work well for back button after I redirect in normal way

redirection-jquery-mobile

But finally I found the solution for this redirection in jquery mobile what we can make sure it work well then. We just need to do the click action for A tag external rel then it will take care the rest for us. Here is the code.

As you see we add an A tag and hide it with ID hidden-search-a-tag then we will change attribute href before we click it.

Do and see the magic. Thanks and welcome any comment

One comment

  1. It ‘s official way to solve all of environment issue. Great tips and code for redirection

Leave a Reply

Your email address will not be published. Required fields are marked *

*