jquery ajax 历史记录和书签插件
There are plugins for handling history and bookmarking like: http://plugins.jquery.com/project/history. Somehow it doesn't look as a complete solution. For example, on one page you might have a filter that consists of several checkboxes, text boxes etc. You would like your page history functionality to update all those controls and to update url when value of some of those controls is changed. With the jquery history plugin, you would have to write all that code (even parsing of the hash value from url). Is there some more complete solution for this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Ben Alman 最近发布了一个很棒的插件来处理与您提出的问题相关的事情。它称为 jQuery BBQ (用于后退按钮和查询)。它有优秀的文档,完整的单元测试,并且比过时的 jQuery History 插件更新得多。我特别喜欢他所做的 onhashchange 工作。 (5 星。会再次与 A+++ 做生意)
Ben Alman has recently released a fantastic plugin to handle things related to the questions you are asking. It is called jQuery BBQ (for Back Button and Query). It has excellent documentation, full unit tests and is alot more up to date than the antiquated jQuery History plugin. I especially like the onhashchange work that he did. (5 Stars. would do business with again A+++)
也许尝试这个 jQuery 历史记录插件: https://github.com/browserstate/history.js
它提供跨浏览器支持、绑定到哈希、重载哈希等等。
它还有一个 Ajax 扩展,可以轻松地将您的网页升级为适当的 Ajax 应用程序: http://browserstate.github.com/history.js/demo/
这是 http://wbhomes.com.au/ 和 http://gatesonline .com.au/stage/public/
总体而言,它有完善的文档、支持和功能丰富。它还在这里赢得了赏金问题 如何在 URL 中显示 Ajax 请求?
Perhaps try this jQuery History plugin: https://github.com/browserstate/history.js
It provides cross browser support, binding to hashes, overloading hashes, all the rest.
There is also a Ajax extension for it, allowing it to easily upgrade your webpage into a proper Ajax application: http://browserstate.github.com/history.js/demo/
This is the solution chosen by such sites as http://wbhomes.com.au/ and http://gatesonline.com.au/stage/public/
Overall it is well documented, supported and feature rich. It's also won a bounty question here How to show Ajax requests in URL?