浏览器后退按钮处理的基于Ajax的应用 [英] Browser Back Button Handling in Ajax Based Application

查看:107
本文介绍了浏览器后退按钮处理的基于Ajax的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似的问题已经被问过这样,但我仍然在寻找一个解决方案,而不是一个解决办法。

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

我工作的一个基于Ajax的应用程序,当用户点击浏览器后退按钮需要用户登录页面(每个页面的登录页面后AJAX加载)。显然,这不是用户的预期。

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*

但客户坚持,他们preFER使用浏览器后退按钮。有没有一种方法,其中有可能以某种方式嵌入面包糠链接到浏览器缓存......换句话说,单击后退按钮将调用其点击面包糠链接相同的动作会?

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?

问候, SB

推荐答案

您可以使用RSH(reallysimplehistory)JavaScript库: HTTP://$c$c.google.com/p/reallysimplehistory/

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

这篇关于浏览器后退按钮处理的基于Ajax的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆