用于使用 ajax 调用而不是页面加载来导航站点的 jQuery 插件?
我正在寻找一个有文档记录的、跨浏览器支持的 jQuery 插件,我可以用它来构建一个像这样的网站: http://redsquareagency.com/
如您所见,当您浏览网站时,URL 通过哈希值发生变化所有新页面都是通过 ajax 调用而不是页面加载来加载的。这允许在加载新页面时使用一些简洁的动画。
我已经搜索了一段时间,试图找到一个提供此功能的好插件。我能找到的最好的是 jQuery Ajaxy: http://balupton.com/sandbox/jquery-ajaxy /demo/
但是,缺少文档,而且我发现它与最新的 jQuery 版本(1.6.0)不兼容。
有人知道可以实现此目的的插件吗?
I am looking for a documented, cross-browser supported jQuery plugin that I can use to build a site like this:
http://redsquareagency.com/
As you can see, as you navigate through the site, the URL changes via a hash and all new pages are loaded via ajax calls instead of page loads. This allows for some neat animations to be used when a new page is loaded.
I've searched for a while trying to find a good plugin that provides this functionality. The best I can find is jQuery Ajaxy: http://balupton.com/sandbox/jquery-ajaxy/demo/
But, the documentation is lacking, and I found it incompatible with the latest jQuery version (1.6.0).
Anyone know of plugins that can accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,我不认为有一个插件可以做所有事情。但是你几乎可以结合 jquery 历史记录插件 自己做一些 jquery。
您要做的就是编写一些代码,使您的所有
hrefs
通过 AJAX 加载。就像这样 -就是这样。 jquery 历史插件将处理剩下的事情。您还应该阅读 Google 文档,了解如何正确执行此操作他们对其进行索引。
Hmmm I don't think there is ONE plugin that does everything. But you can pretty much do some jquery your self with combination of jquery history plugin.
What you do do is write some code make all your
hrefs
load viaAJAX
. Like this -And that's it. The jquery history plugin will take care of the rest. You should also read google's documentation on how to do this properly for them to index it.
您要查找的是 swfaddress。它为 flash 和 ajax 站点提供深度链接(显然您正在寻找 ajax 功能)。您基本上只需要监听页面更改请求并相应地加载内容。
What you looking for is swfaddress. It provides deep linking for flash and ajax sites (obviously your looking for the ajax feature). You basically just have to listen for a page change request and load content accordingly.