Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery, jquery mobile Browser Back button issue

Here is an automatic page transtion issue I've with my jquery mobile page. Any help is appreciated please.

I am on page A, I click on a link, then I go to page "B". Now I click on a link in Page "B" to go to Page C.

On Page C I click browser back button (iphone at the bottom left) it takes me to page B as desired good. Now, I click on the same link to go back to Page C. This time, the browser flashes the Page "C" however, soon automatically (with the jquery mobile loading image in the middle it does a transition slide) it loads Page "B" instead. When I look at the URL on the top, I still pageC.html url and not B. only the content is of Page B.

Do I make sense? What is happening? Help me please.

More info: what am I using?

Thanks much

like image 789
Sunny man Avatar asked Nov 26 '25 13:11

Sunny man


1 Answers

I ran into the same issue and was able to solve it by setting hashListeningEnabled to false.

$.extend(  $.mobile , {
    ajaxEnabled      : false,
    hashListeningEnabled: false
});
like image 73
user1076711 Avatar answered Nov 29 '25 08:11

user1076711



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!