Renjith V
Posts: 0
Joined: Mon Dec 31, 2012 4:54 am

Load Event

I have a page with a list and when I click on one item in the list, I navigate to another page. Before navigation I set a local storage variable.
On the second page, in the 'load' event I am calling a REST service to populate the contents. If I set in the application settings "Render all pages in one HTML file (jQuery Mobile multi-page template)" to true, it appears that the load event is called only once, not when I navigate to that page. Bug or feature?

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Load Event

Load event fires once on first load/run of app. Because all pages are in DOM. Use the Page show event.
I would not use multi page template. Too many issues like that and no control over page history, cache etc.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Load Event

Just to add to what Neil said, this is just how jQuery, jQuery Mobile and the browser work (nothing to do with Tiggzi).

Renjith V
Posts: 0
Joined: Mon Dec 31, 2012 4:54 am

Load Event

Thank you guys

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Load Event

Ya For sure Max !! Sorry I was not clear on this. This is all jQuery stuff.. Tiggzi is great and does its best to work within a nice but at times troubled framework.

Return to “Issues”