DG3
DG3

Reputation: 5298

jquery mobile back button does not seem to be working

Here is the link to the app i am working on http://diligentbrainteam.com/fdd/. Try entering some zip code (2450), and the transition to next page is using 'changePage' method. The back button on the second page does not seem to be working. The URL is always the same, as if the new page is being loaded in the current page. Any suggestions on why this is happening?

Upvotes: 0

Views: 3073

Answers (2)

InvisibleBacon
InvisibleBacon

Reputation: 3222

It is because you are setting "changeHash" to "false" in your changePage call. See http://jquerymobile.com/test/docs/api/methods.html

Upvotes: 2

uday
uday

Reputation: 8710

In the second page you have <div class="left back-btn"><a href="#" data-rel="back">Back</a></div> .Since the href is linked to the same page its not going anywhere. Try to change the href="#" to the starting page and it should work fine.

Upvotes: 0

Related Questions