盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

ASP动态生成的javascript表单验证代码

时间:2024/10/28作者:未知来源:盾怪网教程人气:

[摘要](!re14.test(document."&frmName&"."&tmpArr(i)&".value))"&am...
(!re14.test(document."&frmName&"."&tmpArr(i)&".value))"&_
   "&&(document."&frmName&"."&tmpArr(i)&".value!=''))"&vbCrlf&_
     "{"&vbCrlf&_
  "window.alert('"&tmpArr(i+2)&"');"&vbCrlf&_
"document."&frmName&"."&tmpArr(i)&".select();"&vbCrlf&_
        "document."&frmName&"."&tmpArr(i)&".focus();"&vbCrlf&_
"return false;"&vbCrlf&_
        "}"&vbCrlf 
 
  Exit Function 


   Case "13"   '确认不大于固定位数的Text类型
   findJS="if (document."&frmName&"."&tmpArr(i)&".value.length>"&tmpArr(i+3)&")"&vbCrlf&_
         "{"&vbCrlf&_
   "window.alert('"&tmpArr(i+2)&"');"&vbCrlf&_
"document."&frmName&"."&tmpArr(i)&".select();"&vbCrlf&_
         "document."&frmName&"."&tmpArr(i)&".focus();"&vbCrlf&_
"return false;"&vbCrlf&_
          "}"&vbCrlf
  Exit Function


   Case "14"   '确认含有HTML标记的Text类型
   findJS="if(htmlReg.test(document."&frmName&"."&tmpArr(i)&".value))"&vbCrlf&_
         "{"&vbCrlf&_
   "window.alert('"&tmpArr(i+2)&"');"&vbCrlf&_
"document."&frmName&"."&tmpArr(i)&".select();"&vbCrlf&_
         "document."&frmName&"."&tmpArr(i)&".focus();"&vbCrlf&_
"return false;"&vbCrlf&_
         "}"&vbCrlf
   Exit Function
 
 
  Case "15"
'==========================================================
' 确认未被禁用的Select类型必须选择 格式:state

关键词:ASP动态生成的javascript表单验证代码




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版