Browser Back Button Handling in Ajax Based Application

佐手、 提交于 2019-12-13 01:40:23

问题


Similar questions have been asked on SO, but I am still looking for a solution and not a workaround.

I am working on an Ajax based application and when the user clicks on the Browser Back Button it takes the user to the login page(every page after the login page is ajax loaded). Apparently, this is not what the user expected.

We recommended using Bread Crumbs to the client

*Page One >> Page Two >> Page Three*

but the client insists that they prefer to use the Browser Back Button. Is there a way where it is possible to somehow embed the Bread Crumb links to the Browser Cache...in other words, clicking the back button invokes the same actions which clicking the Bread Crumb links would?

Regards, SB


回答1:


You could use the RSH (reallysimplehistory) javascript library: http://code.google.com/p/reallysimplehistory/



来源:https://stackoverflow.com/questions/2160343/browser-back-button-handling-in-ajax-based-application

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