如何使 Jquery Ajaxify 插件与新的 Jquery History 插件一起使用
我有一个问题,我相信很多其他人也想知道。jquery.ajaxify
插件使用旧的history.js 文件,以及history.fixed.js 文件,该文件曾经允许它在大多数情况下利用历史记录并非所有浏览器..它不再适用于 chrome:
http://max.jsrhost.com/ajaxify/
然而,最新的History.js 文件在 Chrome 中工作:
http://tkyk.github.com/jquery- History-plugin/#demos
我主要注意到旧的使用了驼峰命名法(historyInit()),而新的则没有(history.init())..
谁能比我更好地提供一个简单的修复方法,我尝试过它一次,没有运气,但看起来很简单,我确信只需对 ajaxify.js 文件进行一些修改,它应该可以正常工作。.
我注意到该插件的创建者似乎已在 stackoverflow 上注册,所以希望他可以提供帮助..他的联系表格似乎并未实际发送到他的网站上..
谢谢!
托德
I have a question, that I am sure alot of others are wondering as well..
The jquery.ajaxify plugin uses an old history.js file, along with a history.fixed.js file that once allowed it to utilize history with most if not all browsers..it no longer works in chrome:
http://max.jsrhost.com/ajaxify/
however, the latest history.js file works in chrome:
http://tkyk.github.com/jquery-history-plugin/#demos
I mainly noticed the old one used camelCase (historyInit()) and the new one does not (history.init())..
Can anyone better then me provide a easy fix, I tried it once, with no luck, but it seems so simple, I am sure with just a few mods to the ajaxify.js file, it should work fine..
I noticed the creator of that plugin seems to be registered here on stackoverflow, so hopefully he can help..his contact form doesnt appear to actually send on his website..
thanks!
Todd
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我意识到这是一个老问题,但我想指出一个具有类似功能的插件。
http://www.swook.net/p/jquery-ajaxify-plugin.html
我在不知道 Max 过时的 Ajaxify 插件存在的情况下创建了这个插件。
我现在意识到,我应该在重命名我的插件(称为 dynload_link)之前检查该名称的可用性,但我将保留该名称,直到我想到另一个名称,特别是因为他的插件已过时。
我的 Ajaxify 插件转换内部链接并将指定容器的内容加载到当前加载的容器中。它具有完整的 HTML5 历史记录支持以及 URL 锚点支持。
它使用起来快速且简单,如果有必要,我愿意扩展它的功能。
I realise this is an old question, but I would like to point out a plugin which does something similar.
http://www.swook.net/p/jquery-ajaxify-plugin.html
I created this plugin without knowledge about the existence of Max's outdated Ajaxify plugin.
I now realise that I should have checked the availability of the name before renaming my plugin (which was called dynload_link) but I will be keeping the name until I think of another one, especially since his plugin is outdated.
My Ajaxify plugin converts internal links and loads the contents of specified containers into the current loaded one. It has full HTML5 history support as well as URL anchor support.
It is quick and simple to use and I am willing to expand on its features if necessary.