the problem is 'mypage.html?id=1' and 'mypage.html?id=2' both end up in the dom with the same pageId...
does anyone know how this can be avoided? i have tried something like... (would have been a simple link but android in broken under phonegap for certain versions)
i have a page that has data-dom-cache="false" v1.1.1 rc
But under some circumstances i DO want the page to cache, so I subscribe to the pageremove event and call event.preventDefault in an attempt to keep it in the dom.
i can see the event being executed, but pagecreate still gets called next time when the page should still be in the dom.
am i doing something wrong? is there a known issue around this?
some other strange things are happening with the other events such as pagecreate, pageinit. within these events i do various other things, one being translations. the code runs but is not reflected in the UI.
if i remove the pageremove - preventDefault code all works again.
i have a page with no caching but use preventDefault within pageremove when i want it to stay in the dom.
usually I post to this page via a form and all works well, but i also want to be able to pass query string parameters. i can access these parameters fine, but JQM sees the page as a completely new page so it is no longer cached.
so, how can i get a page with and without query string parameters to be treated as the same page?
at the moment multple page elements with the same id are added to the dom - because of the different querystrings
when i set the transition type to anything but 'none' changing pages to the same page does not work correctly.
i use both the changePage function (passing the allow same page option) and also via normal links. the page does change but is then hidden after the transition. tested on safari and IE - the to page is shown very briefly before it is hidden.
is this a known issue? as i said, if transitions are set to none, there is no problem.
using the 1.1 compiled to phonegap on ios - showing the loader whilst getting data via ajax and rendering the data using jsRender causes the ajax loader image to stutter. ie. the loader stops/starts etc.
I'm setting the data-title attribute for each page assuming that i can get to event.target.title from within the pageshow event, but event.target.title is always empty.
example:
$('[data-role=page]').live('pageshow', function (event, ui) { alert(event.target.title); });