I have a jquery-mobile application with two actual HTML pages, but many more data-role="page"
divs. The issue arises when transitioning from the first actual HTML page to the next one as the navigation stops working. I am not using any custom JavaScript, just relying on the jqm library.
Upon loading the first HTML page, I can navigate between the data-role="page"
elements smoothly using links like
<a href="#oneA">one A</a>
, which directs me to <div data-role="page" id="oneA">
, and so on for oneB, oneC, and others.
Upon moving to the second actual HTML page, I can still navigate between the data-role="page"
elements without any issues using links such as
<a href="#twoA">two A</a>
, leading me to <div data-role="page" id="twoA">
, and similar links for twoB, twoC, and so forth.
However, the problem arises when I click a link on the first HTML page that takes me to the second HTML page instead of directly accessing it. In this scenario, jquery mobile seems to get confused and fails to switch to any other <div data-role...>
pages. It remains stuck on the first data-role page even when links are clicked. The hover link in the browser appears correct (with the trailing #twoB
, for example), but it does not navigate there.
Could this be a situation where jquery-mobile (I am using the latest version: 1.0.1) falls short, and I might need to consider writing some of my own JavaScript?