不显眼的阿贾克斯停止更新后的jQuery工作,1.9.0 [英] Unobtrusive Ajax stopped working after update jQuery to 1.9.0
问题描述
我刚刚更新jQuery和放大器; jQuery用户界面为:
jQuery的-1.9.0.min.js和
jQuery的-UI-1.9.2.min.js
I have just updated jQuery & jQuery UI to: jquery-1.9.0.min.js and jquery-ui-1.9.2.min.js
和...我所有的不显眼的Ajax调用(Ajax.ActionLink,Ajax.BeginForm)不能正常工作 - 他们在新页面中打开结果,而不是更新现有的div
And... all my unobtrusive Ajax calls (Ajax.ActionLink, Ajax.BeginForm) stopped working properly - they open results in a new page instead of updating the existing div.
和我在Firebug得到这个JavaScript错误,当我的页面加载:
And I get this javascript error in Firebug when my page loads:
code并没有改变,当然,刚刚更新使用的NuGet jQuery的脚本。
Code hasn't changed of course, just updated the jQuery scripts using Nuget.
任何人都经历了同样的问题?
Anyone experienced the same problem ??
推荐答案
.live()
1.7以来已去precated,是正式的removed~~V jQuery的1.9 。使用。对()
,而不是因为它是做的preferred方法同样的事情。
.live()
has been deprecated since 1.7 and was officially removed in jQuery 1.9. Use .on()
instead as it is the preferred method of doing the same thing.
这篇关于不显眼的阿贾克斯停止更新后的jQuery工作,1.9.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!