Page 1 of 1

Load Event

Posted: Sun Jan 06, 2013 6:35 am
by Renjith V

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?


Load Event

Posted: Sun Jan 06, 2013 2:47 pm
by Emmz

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.


Load Event

Posted: Sun Jan 06, 2013 5:59 pm
by maxkatz

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


Load Event

Posted: Sun Jan 06, 2013 6:05 pm
by Renjith V

Thank you guys


Load Event

Posted: Sun Jan 06, 2013 11:30 pm
by Emmz

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.