Shrimp007 / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

先输入值,然后置空,会存在2个提示 #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
发现个BUG~
验证的先后顺序 class="required validate-alphanum"
先输入空值 再输入符号就能正常显示
先输入符号 再输入空值两个错误提示同时存在 

http://badqiu.javaeye.com/blog/289306 这个帖子的评论
谢谢

Original issue reported on code.google.com by wanti...@gmail.com on 9 Apr 2009 at 9:07

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/rapid-validation/issues/detail?id=1

Original comment by wanti...@gmail.com on 9 Apr 2009 at 9:10

GoogleCodeExporter commented 9 years ago
一直认为没啥影响所以没有处理.

Original comment by bad...@gmail.com on 28 Apr 2009 at 4:38

GoogleCodeExporter commented 9 years ago
...

Original comment by wanti...@gmail.com on 29 Apr 2009 at 12:42

GoogleCodeExporter commented 9 years ago
cdredfox: 
我弄了一个临时的解决方案://修复Validate的一个bug.在第一次
长度验证后,然后
清空 。前一次的验证信息依然会出现
Validation.clsDiv=function(){
var divs=document.getElementsByClassName('validation-advice');
for(i=0;i<divs.length;i++){
//只对validate框架本身的验证div做清空。自定义的不清空
if(divs[i].id.substr(0,7)=='advice-')
divs[i].style.display="none";
}

}; 然后在Validate.validate 这个function 
中调用上面的这个function就可以了。

Original comment by bad...@gmail.com on 17 Sep 2009 at 9:49