MVC3不显眼的验证在IE浏览器不工作 [英] MVC3 unobtrusive validation not working in IE

查看:156
本文介绍了MVC3不显眼的验证在IE浏览器不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我MVC3应用程序,不显眼的审定在FireFox工作正常,但在IE无法正常工作。

I have MVC3 app, unobtrusive validation works fine in FireFox, but not working in IE.

任何想法,为什么?

更新

似乎jQuery的随MVC3不显眼的验证库不使用jQuery 1.7.1,我使用(即自举模板来)完全兼容。在Firefox,IE浏览器8(一个我)不工作。

It seems that jQuery unobtrusive validation library that comes with MVC3 is not fully compatible with jQuery 1.7.1 that I am using (that came with bootstrap template). Works in Firefox, doesnt work with IE 8 (the one I have).

我开始jQuery的升级到它开始工作(不知道但如果其他的东西不破!)的版本。

I started to upgrade jQuery to the version where it begins to work (not sure though if other things don't break!).

当我到1.8.1它终于奏效。

When I got to 1.8.1 it finally worked.

我继续升级jQuery的,当我到1.9.1 - 该死的东西再次停止工作:)

I continued upgrading jQuery, when I got to 1.9.1 - the damn thing stopped working again :)

这与jQuery的MVC3不显眼的验证为我工作的最新版本的jQuery 1.8.3是

The latest jQuery version that worked for me with MVC3 jQuery unobtrusive validation is 1.8.3.

貌似这也是最新版本的jQuery与什么jQuery的MVC3不显眼的Ajax库workes。

Looks like this is also the latest jQuery version what workes with MVC3 jQuery unobtrusive ajax library.

P.S。使用MVC3不显眼的验证或AJAX的人,不要使用jQuery高比V 1.8.3。

P.S. People using MVC3 unobtrusive validation or ajax, dont use jQuery higher than v 1.8.3.

推荐答案

最近我有类似的问题,与IE7和IE8只(含MVC4)。

I had similar problems recently, with IE7 and IE8 only (with MVC4).

要得到再次验证工作,我已经安装了以下版本:

To get validation working again, I have the following versions installed:

jQuery的: 1.8.3

jQuery验证: 1.9.0.1

jQuery Validation: 1.9.0.1

微软不显眼的验证: 2.0.30116.0 (最新为5月14日,2013年)

Microsoft Unobtrusive Validation: 2.0.30116.0 (latest as of May 14, 2013)

我注意到,移动到的 jQuery验证的V1.10是那里的问题开始。在这篇文章的的时间jQuery验证的是v1.11.1和IE7 / 8不起作用。这也试图与这两个的的jQuery 的1.8.3和1.9.1,也没有用最新版本工作的 jQuery验证

I noticed that moving to jQuery Validation v1.10 was where the problems began. At the time of this post JQuery Validation is v1.11.1 and does not work in IE7/8. This was also tried with both jQuery 1.8.3 and 1.9.1, neither worked with the latest version of jQuery Validation.

注:我的特殊问题是验证了射击和所有输入即使他们不是'数据需要复选框标记错误。

Note: The particular problem for me was validation was firing and flagging error for all inputs and checkboxes even if they were not 'data-required'.

这篇关于MVC3不显眼的验证在IE浏览器不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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