I am loading an JqueryMobile Page Home in my application and on pageinit I am navigating to web/mobile external page (say B) using $.mobile.changePage('webWatch.html'…
Now, when I am trying to changePage from B to Home, which is already in DOM and attributed as data-dom-cache=true, there is nothing happening. I am not getting any error or action on the page.
Any suggestions how to get this thing work.
Thanks.
Use absolute URLs so the URL you ask for matches the
data-urlattribute of the page.For example, if a file is in the
/watch/folder (within the root directory of your account), you can setup it’sdata-urlattribute before jQuery Mobile does:This way you know it’s setup correctly and you don’t have to worry about the relativity of assets. Then when you link to the page use the absolute URL:
This way when you click the
Go to /watch/default.htmllink, jQuery Mobile will search the current pseudo-pages for the one with thedata-urlattribute that matches thehrefattribute of the link.