Navigation problems in jquery1.4.1

偶尔善良 提交于 2019-12-12 01:45:49

问题


I have a 3 page structure like this:

index.html
test.html
folder1/page1.html

I use this script for navigation:

 $(".navigate").on("vclick", function(event){
        event.preventDefault();
        $.mobile.navigate($(this).attr("id")+".html");
    });

Each page has a link like this:

index.html => <a class="navigate" id="test">TEST</a>
test.html => <a class = "navigate" id="folder1/page1">PAGE1</a>

All navigations use Ajax transitions.

The problem is when I navigate to page1.html via index.html -> test.html and from page1.html, if I navigate back to index.html using the browser back button and again navigate to page1.html as stated above my page1.html, it automatically redirects back to events.html, but the URL will be showing the proper address of page1.html

What is happening here?

来源:https://stackoverflow.com/questions/22588061/navigation-problems-in-jquery1-4-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!