Toggling between 2 bookmarks (or see a page, and load another page from bookmark) won't work with jQuery History plugin

妖精的绣舞 提交于 2019-12-11 18:38:12

问题


Anyone knows how to fix this jQuery History plugin? (for ajax history and bookmark)

In http://github.com/tkyk/jquery-history-plugin/issues#issue/5

This is the details:

My app using IE 8's IE 7 Compatibility Mode as well as http://www.serpere.info/jquery-history-plugin/samples/ajax, which is using IE 8's default mode, seem to have this problem:

Create 2 bookmarks

http://www.serpere.info/jquery-history-plugin/samples/ajax/#1
http://www.serpere.info/jquery-history-plugin/samples/ajax/#2

now click one bookmark, and try clicking the other, back and forth. The page content is not updated. In the current Firefox and Chrome, it works. In IE 8, it doesn't. Also true if you directly modify the hash value from #2 to #3

P.S. I am quite sure it is solvable, because if using Facebook on IE 8,

http://www.facebook.com/someusername?v=info#!/someusername?v=info
http://www.facebook.com/someusername?v=info#!/someusername?v=wall

works well if the user toggle between the 2 bookmarks. (substitute someusername by some real user name above)


回答1:


Try balupton's jQuery History plugin instead.



来源:https://stackoverflow.com/questions/3242512/toggling-between-2-bookmarks-or-see-a-page-and-load-another-page-from-bookmark

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