SCRIPT3:找不到成员。

yuck0419 2012-12-07 02:00:20
SCRIPT3: 找不到成员。

jquery-1.8.0.min.js, 行2 字符32088

在IE6下老是会报这个错,经过我的排查,发现是我在使用validate插件的时候会报这个错误
	$("#register_form").validate({
rules : {
'user.usrRegname' : {
required : true,
maxlength : 15,
minlength : 6,
isUsername : true,
remote : {
type : "post",
url : "usr!exists",
data : {
'user.usrRegname' : function() {
return $("#usrRegname").val();
}
},
dataType : "html",
dataFilter : function(data, type) {
var obj = jQuery.parseJSON(data);
return obj.flag;
}
}
},
'user.usrPassword' : {
required : true,
maxlength : 16,
minlength : 6
},
'rePassword' : {
required : true,
equalTo : "#usrPassword"
},
'user.usrRealname' : {
required : true,
maxlength : 16,
minlength : 2
},
'usrBirthday' : {
required : true,
isBirthday : true
},
'user.usrSchool' : {
required : true,
maxlength : 16,
minlength : 2
},
'usrSchoolyear' : {
required : true,
maxlength : 4,
number : true,
minlength : 4
},
'user.usrFaculty' : {
required : true,
maxlength : 16,
minlength : 4
},
'user.usrClass' : {
required : true,
maxlength : 16,
minlength : 4
},
'user.usrEmail' : {
required : true,
email : true
},
'user.usrIdnumber' : {
required : true,
idCard : true
},
'user.usrPhone' : {
required : true,
isMoblie : true
},
'user.usrQuestion' : {
required : true,
maxlength : 16
},
'user.usrAnswer' : {
required : true,
maxlength : 16
},
'user.usrQq' : {
required : true,
number : true,
maxlength : 12
},
'user.usrSkill' : {
required : true,
maxlength : 90
},
'ckcode' : {
required : true,
remote : {
type : "post",
url : "../upload/ckcode.action",
data : {
'checkCode' : function() {
return $("#ckcode").val();
}
},
dataType : "html",
dataFilter : function(data, type) {
var obj = jQuery.parseJSON(data);
return obj.status;
}
}
}
},
success : function(label) {
label.html("<span style='color:green;'>√正确</span>").addClass;
},
messages : {
'user.usrRegname' : {
remote : "×用户名已存在"
},
'ckcode' : {
remote : "×验证码错误"
}
}
});


去掉以上这段就没报这个错了。但是这一段不能去掉,是验证的js代码。
有哪个大牛遇到过这样的问题?应该怎么解决?只剩下20分了。。
...全文
993 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
liqiang_785129039 2013-08-22
  • 打赏
  • 举报
回复
同问,解决没
wxp89 2013-08-06
  • 打赏
  • 举报
回复
这个问题解决了么
  • 打赏
  • 举报
回复
你换个版本高些的浏览器,
xu_lan 2013-07-22
  • 打赏
  • 举报
回复
注释了也不行啊,还是说jquery找不到成员
海棠无香666 2013-04-04
  • 打赏
  • 举报
回复
你好,我也遇到了这个错误,导致这个问题的原因是因为jquery.validate.js文件中有这么一句
// Add novalidate tag if HTML5.
		this.attr( "novalidate", "novalidate" );
大致的意思是添加html5的标签,具体也不是很清楚,把这句话注释掉就行了。

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧