将博CMS论坛

首页 » 综合 » BUG汇报 » 错误: 'validateType' 为空或不是对象
安稳先生 - 2012/4/18 11:22:13
admin/modules_setting.aspx  这个页面点击保存时出现js错语 admin/modules_setting.aspx

行: 160
错误: 'validateType' 为空或不是对象
jumbot - 2012/4/19 16:22:39
  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3. $.formValidator.initConfig({validatorGroup:"1",onError:function(msg){alert(msg);}});
  4. $("#txtAdminUploadType").formValidator({validatorGroup:"1",tipid:"tipAdminUploadType",onshow:"半角分号隔开",onfocus:"半角分号隔开"}).InputValidator({min:1,onerror:"必须填写"});
  5. $("#txtAdminUploadSize").formValidator({validatorGroup:"1",tipid:"tipAdminUploadSize",onshow:"单位为KB",onfocus:"单位为KB"}).RegexValidator({regexp:"num1",datatype:"enum",onerror:"格式不正确"});
  6. $.formValidator.initConfig({validatorGroup:"2",onError:function(msg){/*alert(msg)*/}});
  7. $("#txtUserUploadType").formValidator({validatorGroup:"2",tipid:"tipUserUploadType",onshow:"半角分号隔开",onfocus:"半角分号隔开"}).InputValidator({min:1,onerror:"必须填写"});
  8. $("#txtUserUploadSize").formValidator({validatorGroup:"2",tipid:"tipUserUploadSize",onshow:"单位为KB",onfocus:"单位为KB"}).RegexValidator({regexp:"num1",datatype:"enum",onerror:"格式不正确"});
  9. });
  10. function Button1_onclick() {
  11. return $.formValidator.PageIsValid('1');
  12. }

  13. function Button2_onclick() {
  14. return $.formValidator.PageIsValid('2');
  15. }
  16. </script>
复制代码
安稳先生 - 2012/4/19 19:54:54
亲人啊  谢谢了 :-D
经测试 好用,神人啊
1
查看完整版本: 错误: 'validateType' 为空或不是对象