Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery mobile - page events order

What is the order of page events triggered when navigate from one page to another ?

like image 805
Shinoj Avatar asked Jul 20 '12 09:07

Shinoj


People also ask

What does jQuery mobile use to handle page events?

However, in jQuery Mobile, Ajax is used to load the contents of each page into the DOM as you navigate, and the DOM ready handler only executes for the first page. To execute code whenever a new page is loaded and created, you can bind to the pageinit event.


1 Answers

I checked it with multi page template and found the following result:
(Navigate from A to B)

page B---pagebeforecreate

page B---pagecreate

page B---pageinit

page A---pagebeforehide

page B---pagebeforeshow

page A---pageremove

page A---pagehide

page B---pageshow

like image 146
muhammed basil Avatar answered Oct 05 '22 22:10

muhammed basil