some observations on ajax navigation and help appreciated
for the past two months, i have been trying to get a mobile version of my site. so all my stuff are for
jquery mobile 1.3.2. here are some things that i have figured out by myself, so please comment on what
i have to say and tell me if i am doing something wrong.
first as watusiware pointed out that multi-page way of doing things is not very useful unless you have a very
small site involving only very few pages because you cannot navigate to a multi-page with ajax.
(1) i am not sure sure if i am right, but making data-ajax="false" seems to make my app show a top and bottom browser bar (for url address, etc.) which kind of defeats the purpose of the whole idea of jquery mobile using ajax navigation.
(2) unless i specify a page as data-dom-cache="true", when returning to it from another page will not remember its position (scroll position or whether one of the panel is open).
(3) i sometimes prefer to dynamically (javascript with the help of jquery) add and change to a page, which i think is probably faster than loading another page because i know what data this page needs and i can use ajax myself to get the data, so there will be a lot less data transfered. but somehow, the back button on this dynamically created page does not always work. sometimes, the back to page needs to be data-com-cache="true". am i doing something wrong? or is this the expected behavior.
(4) is there a way to make a page semi-dom cached? by this i mean, when I go there, it gets a full copy from the server. but when i leave it to go somewhere else and return to it, it is there and remembers where it is, like whether panels are open or scrolltop position?
Thanks a lot.
ftc