Hi John,
I'm developing an app with JQM + phonegap.
I'm using single page navigation model and injecting new pages into the DOM as the user navigates:
1st) changePage('page2.html') or <a href='page2.html'>to Page 2</a>
2nd) refresh data once new page (target) is ready if required
I'm handling correctly almost everything using
pagecreate and
pagebeforeshow events.
The "only" case I'm not able to deal with is when passing parameters between pages is required.
Just imagine same example as yours but nextPage need to be injected (not #page already into DOM).
On
pagebeforeload I'm able to have acces to
?id=X but target-page to load into
dataX from server is not ready on the DOM. So, I lost my chance to request
dataX if I don't do it while on this event.
pagecreate event do not get any data as 2nd param....
Any suggestions ??
Thank you in advance.