0

I am working Phonegap project using jQuery Mobile. I am getting following issue :

1) I have 3 pages named A,B,C. I am using jQuery Mobile navigation to go back and forth like :

$.mobile.changePage("B.html", { transition: "slide" });

2) And for getting back from C to A :

$.mobile.changePage("C.html", { transition: "slide" });

3) Next time when I click next button application shows Page B for a second and then again jumps back to page A and this jump number increases every time.

I have gone through this and this .But unfortunately none of this solution is working for me . I am using jQuery mobile version 1.4.5 . Please suggest workaround for this.

V-Xtreme
  • 6,775
  • 6
  • 33
  • 76
  • 2
    First step: use latest methods https://stackoverflow.com/a/19186330/1771795 check if it solves your problem. If not, post more code please. – Omar May 08 '19 at 12:09
  • 1
    It is very likely You are attaching at every page load a new eventlistener again and again to the document. Read the docs carefully: [Navigation - jQuery Mobile demos](https://demos.jquerymobile.com/1.4.5/navigation/). This is a conceptual issue of page life-cicle. – deblocker May 09 '19 at 07:32
  • @deblocker : Right , on first page I was attaching one event every time so I was the issue . Resolved now . – V-Xtreme May 10 '19 at 12:13

0 Answers0