封装好的Javascript客户端校验类,支持各种数据类型和校验方法

ValidateUti.js
ExpandedBlockStart.gif ContractedBlock.gif /**/ /**
InBlock.gif * 
InBlock.gif * <p>Title: ValidateUti.js</p>
InBlock.gif * <p>Description: the js be include to validate form data.</p>
InBlock.gif * <p>Copyright: Copyright (c) 2004</p>
InBlock.gif * <p>Company: Freeborders</p>
InBlock.gif * @author Rukee Fan
InBlock.gif * @version 1.1 2004-08-05
InBlock.gif * @see sample page: validateSample.htm
ExpandedBlockEnd.gif 
*/

None.gif
ExpandedBlockStart.gifContractedBlock.giffunction FBvalidater()
dot.gif {
InBlock.gif    
this.clearinvalidControlList();
InBlock.gif    
this.clearvalidater();
ExpandedBlockEnd.gif}

None.gif
None.gifFBvalidater.prototype 
=  
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif    validateobj_obj        :    [],
InBlock.gif    errorMessage        :    
'',
InBlock.gif    invalidControlList    :    [],
InBlock.gif    firstinvalidControl    :    
null,
InBlock.gif    AutoFocus        :    
true,
InBlock.gif    AutoSelect        :    
true,
InBlock.gif    DATE_FORMAT        :    
"yyyy-mm-dd",
InBlock.gif    
InBlock.gif    addvalidater        :    function(validater)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        var a_lenght 
= this.validateobj_obj.length;
InBlock.gif        
this.validateobj_obj[a_lenght] = validater;
ExpandedSubBlockEnd.gif    }
,
InBlock.gif    
InBlock.gif    addrequirevalidater     :    function(ValidateControl,ErrorMessage)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        var obj_validate 
= new requirevalidater(ValidateControl,ErrorMessage) ;
InBlock.gif        
this.addvalidater(obj_validate);
ExpandedSubBlockEnd.gif    }
,
InBlock.gif    
ExpandedSubBlockStart.gifContractedSubBlock.gif    addcomparevalidater    :    function(ValidateControl,CompairMethod,DataType,CompairValue,ErrorMessage) 
dot.gif{
InBlock.gif        var obj_validate 
= new comparevalidater(ValidateControl,CompairMethod,DataType,CompairValue,ErrorMessage);
InBlock.gif        
this.addvalidater(obj_validate);
ExpandedSubBlockEnd.gif    }
,
InBlock.gif        
InBlock.gif    clearvalidater        :    function()
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        var Temp_obj 
= new Array();
InBlock.gif        
this.validateobj_obj = Temp_obj;
ExpandedSubBlockEnd.gif    }
,
InBlock.gif    
InBlock.gif    validate        :    function()
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif      
this.clearinvalidControlList();
InBlock.gif      
this.errorMessage = "";
InBlock.gif      var errormessage 
= "";
InBlock.gif      var i
=0;
ExpandedSubBlockStart.gifContractedSubBlock.gif      
for (i=0;i<=(this.validateobj_obj.length-1);i++dot.gif{
InBlock.gif          var obj 
= this.validateobj_obj[i].ValidateControl;
ExpandedSubBlockStart.gifContractedSubBlock.gif          
if (obj.length) dot.gif{
InBlock.gif              var subobj;
ExpandedSubBlockStart.gifContractedSubBlock.gif              
for (subobj in obj) dot.gif{
InBlock.gif                  
//----- 2004-08-05 add by rukee.fan -----
InBlock.gif                  
// when validate a obj array with same error message, only display this message one time.
InBlock.gif
                  var validatereturn = this.validateobj(obj[subobj],this.validateobj_obj[i]);
ExpandedSubBlockStart.gifContractedSubBlock.gif                  
if (validatereturn!=falsedot.gif{
InBlock.gif                      
this.addToinvalidControlList(obj[subobj]);
InBlock.gif                      errormessage 
= errormessage + validatereturn;    
InBlock.gif                      
break
ExpandedSubBlockEnd.gif                  }

InBlock.gif                  
//----- 2004-08-05 add by rukee.fan -----
ExpandedSubBlockEnd.gif
              }

ExpandedSubBlockStart.gifContractedSubBlock.gif          }
elsedot.gif{
InBlock.gif              var validatereturn 
= this.validateobj(obj,this.validateobj_obj[i])
ExpandedSubBlockStart.gifContractedSubBlock.gif              
if (validatereturn!=falsedot.gif{
InBlock.gif                  
this.addToinvalidControlList(obj);
InBlock.gif                  errormessage 
= errormessage + validatereturn;
ExpandedSubBlockEnd.gif            }

InBlock.gif              
ExpandedSubBlockEnd.gif          }

ExpandedSubBlockEnd.gif      }

InBlock.gif      
ExpandedSubBlockStart.gifContractedSubBlock.gif      
if (errormessage!=""dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif          
if (this.AutoFocus) dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif              
try dot.gif{
InBlock.gif                  
this.firstinvalidControl.focus();    
ExpandedSubBlockStart.gifContractedSubBlock.gif              }
catch(e)dot.gif{}
ExpandedSubBlockEnd.gif          }

ExpandedSubBlockStart.gifContractedSubBlock.gif          
if (this.AutoSelect) dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif              
try dot.gif{
InBlock.gif                  
this.firstinvalidControl.select();
ExpandedSubBlockStart.gifContractedSubBlock.gif              }
catch(e)dot.gif{}
ExpandedSubBlockEnd.gif          }

InBlock.gif          
this.errorMessage = errormessage;
InBlock.gif          
return false;
ExpandedSubBlockStart.gifContractedSubBlock.gif      }
elsedot.gif{
InBlock.gif          
return true;
ExpandedSubBlockEnd.gif      }

ExpandedSubBlockEnd.gif    }
,
InBlock.gif        
InBlock.gif    validateobj        :    function(obj,validater) 
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif        
if (validater.ValidateType.toLowerCase()=="require"&&obj.value.trim()==""dot.gif{
InBlock.gif          
return  validater.ErrorMessage;
ExpandedSubBlockEnd.gif        }

InBlock.gif        
ExpandedSubBlockStart.gifContractedSubBlock.gif        
if (validater.ValidateType.toLowerCase()=="compare"dot.gif{
InBlock.gif            var CompairValue 
= validater.CompairValue;
InBlock.gif              var IsComparePass;
InBlock.gif              
ExpandedSubBlockStart.gifContractedSubBlock.gif            
if (validater.DataType.toLowerCase()=="length"dot.gif{
InBlock.gif              CompairValue 
= parseInt(CompairValue);
InBlock.gif              
if (isNaN(CompairValue)) 
ExpandedSubBlockStart.gifContractedSubBlock.gif              
dot.gif
InBlock.gif                  alert(
"CompairValue parameter error,it must be a integer.");
InBlock.gif                  
return false;
ExpandedSubBlockEnd.gif              }

InBlock.gif              
InBlock.gif              IsComparePass 
= eval(obj.value.toString().length.toString() + validater.CompairMethod + CompairValue.toString())
ExpandedSubBlockStart.gifContractedSubBlock.gif              
if (IsComparePass) dot.gif{
InBlock.gif                  
return false;
ExpandedSubBlockEnd.gif              }

InBlock.gif              
InBlock.gif              
return  validater.ErrorMessage;              
ExpandedSubBlockEnd.gif            }

InBlock.gif            
InBlock.gif              
if (obj.value.trim()==""return false;
InBlock.gif              
InBlock.gif                var get_inputvalue; 
//get the value passed the validate.
ExpandedSubBlockStart.gifContractedSubBlock.gif
              if (validater.DataType.toLowerCase()=='number'dot.gif{
InBlock.gif                  var ls_TempValue
=obj.value.ChangeToNum();
InBlock.gif                
if (isNaN(ls_TempValue)) 
ExpandedSubBlockStart.gifContractedSubBlock.gif                
dot.gif
InBlock.gif                    
return  validater.ErrorMessage;
ExpandedSubBlockStart.gifContractedSubBlock.gif                  }
elsedot.gif{
InBlock.gif                      get_inputvalue 
= obj.value.trim();
ExpandedSubBlockEnd.gif                  }

ExpandedSubBlockEnd.gif              }

InBlock.gif              
ExpandedSubBlockStart.gifContractedSubBlock.gif              
if (validater.DataType.toLowerCase()=='int'dot.gif{
InBlock.gif                  get_inputvalue 
= obj.value.trim();
ExpandedSubBlockStart.gifContractedSubBlock.gif                  
if (get_inputvalue.toString()!= parseInt(get_inputvalue).toString()) dot.gif{
InBlock.gif                      
return  validater.ErrorMessage;
ExpandedSubBlockStart.gifContractedSubBlock.gif                  }
elsedot.gif{
InBlock.gif                      
ExpandedSubBlockEnd.gif                  }

ExpandedSubBlockEnd.gif              }

InBlock.gif              
InBlock.gif              
ExpandedSubBlockStart.gifContractedSubBlock.gif              
if (validater.DataType.toLowerCase()=='date'dot.gif{
InBlock.gif                  get_inputvalue 
= obj.value.parseDate(this.DATE_FORMAT);
InBlock.gif                  
ExpandedSubBlockStart.gifContractedSubBlock.gif                  
if (get_inputvalue) dot.gif{
InBlock.gif                      
ExpandedSubBlockStart.gifContractedSubBlock.gif                  }
elsedot.gif{
InBlock.gif                      
return  validater.ErrorMessage;
ExpandedSubBlockEnd.gif                  }

ExpandedSubBlockEnd.gif              }

InBlock.gif              
ExpandedSubBlockStart.gifContractedSubBlock.gif              
if (validater.CompairMethod.toLowerCase() != "typecheck"dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif                  
if (validater.DataType=='date'dot.gif{
InBlock.gif                      get_inputvalue 
= get_inputvalue.getTime().toString();
InBlock.gif                      CompairValue 
= validater.CompairValue.parseDate(this.DATE_FORMAT);
ExpandedSubBlockStart.gifContractedSubBlock.gif                      
if (CompairValue) dot.gif{
InBlock.gif                          CompairValue 
= CompairValue.getTime().toString();    
ExpandedSubBlockEnd.gif                      }

ExpandedSubBlockEnd.gif                  }

InBlock.gif                  
InBlock.gif                  IsComparePass 
= eval(get_inputvalue + validater.CompairMethod +  CompairValue)
ExpandedSubBlockStart.gifContractedSubBlock.gif                  
if (!IsComparePass) dot.gif{
InBlock.gif                      
return  validater.ErrorMessage;            
ExpandedSubBlockEnd.gif                  }

ExpandedSubBlockEnd.gif              }

ExpandedSubBlockEnd.gif         }

InBlock.gif                
InBlock.gif        
return false;
ExpandedSubBlockEnd.gif    }
,
InBlock.gif    addToinvalidControlList    : function(obj)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        var a_lenght 
= this.invalidControlList.length;
InBlock.gif        
this.invalidControlList[a_lenght] = obj;
InBlock.gif        
this.firstinvalidControl = this.invalidControlList[0];
ExpandedSubBlockEnd.gif    }
,
InBlock.gif    clearinvalidControlList    : function()
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        var Temp_obj 
= new Array();
InBlock.gif        
this.invalidControlList = Temp_obj;
InBlock.gif        firstinvalidControl 
= null;
ExpandedSubBlockEnd.gif    }

InBlock.gif    
InBlock.gif
ExpandedBlockEnd.gif}

None.gif
None.gif
ExpandedBlockStart.gifContractedBlock.giffunction requirevalidater() 
dot.gif {
InBlock.gif    
this.ValidateControl = ""
InBlock.gif    
this.ValidateType = "require";  
InBlock.gif    
this.ErrorMessage = "";  
ExpandedBlockEnd.gif}

None.gif
ExpandedBlockStart.gifContractedBlock.giffunction requirevalidater(ValidateControl,ErrorMessage) 
dot.gif {
InBlock.gif    
this.ValidateControl = ValidateControl; 
InBlock.gif    
this.ValidateType = "require";  
InBlock.gif    
this.ErrorMessage = ErrorMessage; 
ExpandedBlockEnd.gif}

None.gif
ExpandedBlockStart.gifContractedBlock.giffunction comparevalidater() 
dot.gif {
InBlock.gif    
this.ValidateControl = "";
InBlock.gif    
this.ValidateType = "compare";
InBlock.gif    
this.CompairMethod = "TypeCheck"// >; >= ; = ; <= ; <;
InBlock.gif
    this.DataType = ""//number; int; Date; Length;
InBlock.gif
    this.CompairValue = "";
InBlock.gif    
this.ErrorMessage = "";
ExpandedBlockEnd.gif}

None.gif
ExpandedBlockStart.gifContractedBlock.giffunction comparevalidater(ValidateControl,CompairMethod,DataType,CompairValue,ErrorMessage) 
dot.gif {
InBlock.gif    
this.ValidateControl = ValidateControl; 
InBlock.gif    
this.ValidateType = "compare";
InBlock.gif    
if (CompairMethod=="") CompairMethod = "TypeCheck";
InBlock.gif    
this.CompairMethod = CompairMethod; // TypeCheck ;  > ; >= ; = ; <= ; <;
InBlock.gif
    this.DataType = DataType; //number; int; Date; Length;
InBlock.gif
    this.CompairValue = CompairValue;
InBlock.gif    
this.ErrorMessage = ErrorMessage;
ExpandedBlockEnd.gif}

None.gif
ExpandedBlockStart.gifContractedBlock.gif
/**/ /**
InBlock.gif* parseDate(format)
InBlock.gif* parse a string to date
ExpandedBlockEnd.gif
*/

ExpandedBlockStart.gifContractedBlock.gifString.prototype.parseDate 
=  function(format) dot.gif {
InBlock.gif    var dateVal 
= this;
InBlock.gif    
if(dateVal==undefined) return false;
InBlock.gif    
if(dateVal==nullreturn false;
InBlock.gif    dateVal
=dateVal.trim();
InBlock.gif    
if(format.length!=dateVal.length) return false;
InBlock.gif    
InBlock.gif    var dateArr
=["","","","","",""];
InBlock.gif    
for(z=0;z<format.length;z++)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{    
InBlock.gif        
switch(format.charAt(z))
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{    
InBlock.gif            
case "d":dateArr[0]+=dateVal.charAt(z);break;
InBlock.gif            
case "m":dateArr[1]+=dateVal.charAt(z);break;
InBlock.gif            
case "y":dateArr[2]+=dateVal.charAt(z);break;
InBlock.gif            
case "h":dateArr[3]+=dateVal.charAt(z);break;
InBlock.gif            
case "i":dateArr[4]+=dateVal.charAt(z);break;
InBlock.gif            
case "s":dateArr[5]+=dateVal.charAt(z);break;
ExpandedSubBlockEnd.gif        }

ExpandedSubBlockEnd.gif    }
;
InBlock.gif    
InBlock.gif    
for(z=0;z<dateArr.length;z++)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{    
InBlock.gif        
if(isNaN(dateArr[z]))return false;
InBlock.gif        dateArr[z]
=new Number(dateArr[z]);
ExpandedSubBlockEnd.gif    }
;
InBlock.gif    
if(dateArr[0]<1||dateArr[0]>31return false;
InBlock.gif    
if(dateArr[2]<100)
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        dateArr[
2]+=1900;
InBlock.gif        
if(dateArr[2]<1950)dateArr[2]+=100;
ExpandedSubBlockEnd.gif    }

InBlock.gif    
InBlock.gif    
if(dateArr[3]>24)return false;
InBlock.gif    
if(dateArr[5]>60)return false;
InBlock.gif    
if(dateArr[0]==31&&(dateArr[1]==2||dateArr[1]==4||dateArr[1]==6||dateArr[1]==9||dateArr[1]==11)) return false;
InBlock.gif    
if(dateArr[0]==29&&dateArr[1]==2&&dateArr[2]%4!=0)return false;
InBlock.gif
InBlock.gif    
return new Date(dateArr[2],dateArr[1]-1,dateArr[0],dateArr[3],dateArr[4],dateArr[5]);
ExpandedBlockEnd.gif}

None.gif
ExpandedBlockStart.gifContractedBlock.gif
/**/ /**
InBlock.gif* trim()
InBlock.gif* Use null string to replace space before and after of the string;
ExpandedBlockEnd.gif
*/

None.gifString.prototype.trim 
=  function()
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif    
return this.replace(/(^s*)|(s*$)/g, "");
ExpandedBlockEnd.gif}

None.gif
ExpandedBlockStart.gifContractedBlock.gif
/**/ /**
InBlock.gif* ChangeToNum()
InBlock.gif* change string to number;
ExpandedBlockEnd.gif
*/

None.gifString.prototype.ChangeToNum 
=  function()
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif    var r, re;
InBlock.gif    re 
= / /g;
InBlock.gif    r
=this.replace(re, "");
ExpandedSubBlockStart.gifContractedSubBlock.gif    
if (r==""dot.gif{
InBlock.gif        r
="ls_null";
ExpandedSubBlockEnd.gif    }

InBlock.gif    
InBlock.gif    var reg 
= /^[-|+]?[d]+(.)?[d]*$/;
InBlock.gif    var r2 
=r.match(reg);
InBlock.gif    
if(r2==null) r = parseFloat("abc"); // return a NaN;
InBlock.gif

InBlock.gif    
return(r);
ExpandedBlockEnd.gif}
validateSample.htm
None.gif <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
None.gif
< html  style ="width:600px;height:600px" >
None.gif
< title > Fabric Details </ title >
ExpandedBlockStart.gifContractedBlock.gif
< style  type ="text/css" > dot.gif
InBlock.gif<!--
InBlock.giftd
ExpandedSubBlockStart.gifContractedSubBlock.gif
{dot.gif}{
InBlock.gif  word-break
:normal;
ExpandedSubBlockEnd.gif
}

ExpandedBlockEnd.gif//-->
None.gif
</ style >
None.gif
< META  name ="GENERATOR"  content ="IBM WebSphere Studio" >
None.gif
< script  language ="javascript"  src ="ValidateUti.js" ></ script >
ExpandedBlockStart.gifContractedBlock.gif
< script  language ="javascript" > dot.gif
InBlock.gif
<!--
ExpandedSubBlockStart.gifContractedSubBlock.gif
function checkFormData()dot.gif{
InBlock.gif  
//new a validater
InBlock.gif
  var myFBvalidater = new FBvalidater();
InBlock.gif
InBlock.gif  validate1 
= new requirevalidater()
InBlock.gif  validate1.ValidateControl 
= SB_Asset_Details_form.LocalAssetImage;
InBlock.gif  validate1.ErrorMessage 
= "Please select a local image ! ";
InBlock.gif  myFBvalidater.addvalidater(validate1);
InBlock.gif  
InBlock.gif  
var objarray=new Array();
InBlock.gif  objarray[
1]=SB_Asset_Details_form.LocalAssetID;
InBlock.gif  objarray[
0]=SB_Asset_Details_form.Description;
InBlock.gif  
InBlock.gif  
// addrequirevalidater(ValidateControl,ErrorMessage) 向校验对象中新增需要校验不为空的控件对象。
InBlock.gif
 //参数一ValidateControl: 待校验的控件对象,可以是一个控件,也可以是一个控件数组
InBlock.gif
 //参数二 ErrorMessage: 如果校验不通过返回的错误信息。
InBlock.gif
  myFBvalidater.addrequirevalidater(objarray, "Field can not been null! "
InBlock.gif  
InBlock.gif  
//addcomparevalidater(ValidateControl,CompairMethod,DataType,CompairValue,ErrorMessage) 向校验对象中新增需要进行比较校验(数据类型,数据范围)的控件对象。 
InBlock.gif
 //第一个参数ValidateControl:是指定待校验的控件对象,可以是一个控件,也可以是一个控件数组。
InBlock.gif
 //第二个参数CompairMethod:指定校验方法,包括 (TypeCheck, >, >=, =, <, <=)
InBlock.gif
 //第三个参数DataType:指定数据类型,包括 (number, int, Date, Length )
InBlock.gif
 //第四个参数CompairValue:指定校验的比较值,如果是字符校验,则指定长度,如果是对页面中的两个控件的值进行比较,此参数可以是要进行比较的控件的值(如:validateForm.modiDate.value)。
InBlock.gif
 //第五个参数ErrorMessage:如果校验不通过返回的错误信息
InBlock.gif
 //所有参数必须输入,当第二个参数是'TypeCheck', 则第三个参数不能是'Length'
InBlock.gif
  
InBlock.gif  
// validate a integer type input field; 
InBlock.gif
  myFBvalidater.addcomparevalidater(SB_Asset_Details_form.txt_typenumber,'TypeCheck','number','','Please input a integer! ');
InBlock.gif  
InBlock.gif  
// validate a number input field, must bigger than 7.
InBlock.gif
  myFBvalidater.addcomparevalidater(SB_Asset_Details_form.txt_compairnumber,'>','number','7','Please input a integer big than 7! ');
InBlock.gif  
InBlock.gif  
// validate a number input field, must bigger than another number input field.
InBlock.gif
  myFBvalidater.addcomparevalidater(SB_Asset_Details_form.txt_compairnumber,'>','number',SB_Asset_Details_form.txt_typenumber.value,'compairnumber must bigger than typenumber! ');
InBlock.gif  
InBlock.gif  
// validate a datetime input field.
InBlock.gif
  myFBvalidater.addcomparevalidater(SB_Asset_Details_form.txt_inputDate,'TypeCheck','date','','Please input a DateTime! ');
InBlock.gif  
InBlock.gif  
// validate a datetime input field, must bigger than 2003-04-01.
InBlock.gif
  myFBvalidater.addcomparevalidater(SB_Asset_Details_form.txt_inputDate,'>','date','2003-04-01','Please input a DateTime biger than 2003-04-01! ');
InBlock.gif  
InBlock.gif  
// validate a input field, length must less or equal than 10.
InBlock.gif
  myFBvalidater.addcomparevalidater(SB_Asset_Details_form.Description,'<=','Length','10','field length must <= 10! ');
InBlock.gif  
InBlock.gif  
// validate() 
InBlock.gif
  // returnvalue: true or false
InBlock.gif
  if (myFBvalidater.validate())
ExpandedSubBlockStart.gifContractedSubBlock.gif  
dot.gif{
InBlock.gif      alert(
"validate passed!");
ExpandedSubBlockStart.gifContractedSubBlock.gif  }
  elsedot.gif{
InBlock.gif      alert(myFBvalidater.errorMessage);
ExpandedSubBlockEnd.gif  }

ExpandedSubBlockEnd.gif}

InBlock.gif
ExpandedBlockEnd.gif
//-->
None.gif
</ script >
None.gif
< body  id ="bodyTable"  BGCOLOR ="#FFFFFF" >
None.gif
< form  name ="SB_Asset_Details_form"  method ="POST"  enctype ="multipart/form-data" >
None.gif
< input  type ="text"  name ="LocalAssetID"  size ="26"  value ="" >< br >
None.gif
< textarea  name ="Description"  cols ="41"  rows ="5"  onkeypress ="javascript:if(this.value.length>248){return false;}" > few </ textarea >< br >
None.gif
< input  type ="file"  name ="LocalAssetImage"  size ="26"  value =""  onkeydown ="javascript:return false;" >< br >
None.gifNumber(int):
< input  type ="input"  name ="txt_typenumber"  size ="26"  value =""   >< br >
None.gifCompair Number( >7 ):
< input  type ="input"  name ="txt_compairnumber"  size ="26"  value =""   >< br >
None.gifDate:
< input  type ="input"  name ="txt_inputDate"  size ="26"  value =""   >< br >
None.gif
< input  type ="button"  name ="Save"  value ="Save"  onclick ="javascript:checkFormData();"  class ="blueButton" >
None.gif
None.gif
</ form >
None.gif
</ body >
None.gif
</ html >

转载于:https://www.cnblogs.com/rukeefan/archive/2004/08/09/31534.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值