Managing Browser History in Ajax

試著忘記壹切 提交于 2019-11-28 02:32:03

问题


I am using ajax in my site.

If a user enters a query and select a category, i will updates the page with result with ajax. I also update the url with hash value which shows query and category seperated by an &.

What I want is that when the browser back button is pressed I want to display the previous result without reloading. What i am getting is that the URL has the previous values, but the result is not updating.


回答1:


You can use : "Yahoo! UI Library: Browser History Manager"



来源:https://stackoverflow.com/questions/974186/managing-browser-history-in-ajax

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