home *** CD-ROM | disk | FTP | other *** search
- <!--Created with NetObjects Script Component Pad-->
- <!-- file dataValidationComponent.ecc
- ScriptComponent Interface file for dataValidation.js -->
-
- <?XML>
- <!DOCTYPE COMPONENT SYSTEM "ecmascriptcomponent.dtd">
-
- <COMPONENT NAME="com.netobjects.dataValidation" ENV="client"
- DISPLAYNAME="Data Validation"
- HINT="Creates an object that contains data validation functions for strings, numbers and objects."
- SRC="dataValidation.js">
-
- <PROPERTY NAME="name"
- DISPLAYNAME="name"
- HINT="(REQUIRED) Unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page."
- DEFAULTVALUE="dataValidation1">
- </PROPERTY>
-
- <METHOD NAME="isAlpha"
- DISPLAYNAME="Is Alpha?"
- HINT="Function determines if all elements of a given string are alpha (i.e. a-z or A-Z)">
- <PARAMETER NAME="str" TYPE="string"
- DISPLAYNAME="Test String"/>
- </METHOD>
-
- <METHOD NAME="isAlphaNum"
- DISPLAYNAME="Is Alpha Num?"
- HINT="Function determines if all elements of a given string are alpha and/or numeric (i.e. a-z, 0-9, and/or A-Z)">
- <PARAMETER NAME="str" TYPE="string"
- DISPLAYNAME="Test String"/>
- </METHOD>
-
- <METHOD NAME="isAlphaNumOrUnderscore"
- DISPLAYNAME="Is Alpha Numeric or Underscore?"
- HINT="Function determines if all elements of a given string are alpha, numeric, or underscore(i.e. a-z, 0-9, _, or A-Z)">
- <PARAMETER NAME="str" TYPE="string"
- DISPLAYNAME="Test String"/>
- </METHOD>
-
- <METHOD NAME="isBlank"
- DISPLAYNAME="Is Blank?"
- HINT="Function determines if the given string is blank or not.">
- <PARAMETER NAME="str" TYPE="string"
- DISPLAYNAME="Test String"/>
- </METHOD>
-
- <METHOD NAME="isInt"
- DISPLAYNAME="Is Integer?"
- HINT="Function determines if the given value is an integer or not.">
- <PARAMETER NAME="numstr"
- DISPLAYNAME="Test Integer"/>
- <PARAMETER NAME="allowNegatives" TYPE="boolean"
- DISPLAYNAME="Allow Negatives?"/>
- </METHOD>
-
- <METHOD NAME="isNull"
- DISPLAYNAME="Is Null"
- HINT="Function determines if the given string is null or not.">
- <PARAMETER NAME="val"
- DISPLAYNAME="Test Value"/>
- </METHOD>
-
- <METHOD NAME="isNum"
- DISPLAYNAME="Is Number"
- HINT="Function determines if the given value is a number or not.">
- <PARAMETER NAME="numstr"
- DISPLAYNAME="Test Number"/>
- </METHOD>
-
- <METHOD NAME="isUndef"
- DISPLAYNAME="Is Undefined"
- HINT="Function determines if the given value is undefined or not.">
- <PARAMETER NAME="numstr"
- DISPLAYNAME="Test Value"/>
- </METHOD>
-
- <METHOD NAME="isValid5DigitZip"
- DISPLAYNAME="Is Valid 5 Digit Zipcode"
- HINT="Function determines if the given string is a valid zipcode or not.">
- <PARAMETER NAME="str"
- DISPLAYNAME="Test ZipCode"/>
- </METHOD>
-
- <METHOD NAME="isValid5Plus4DigitZip"
- DISPLAYNAME="Is Valid 5+4 digit Zipcode"
- HINT="Function determines if the given string is a valid extended zipcode or not.">
- <PARAMETER NAME="str"
- DISPLAYNAME="Test ZipCode"/>
- </METHOD>
-
- <METHOD NAME="isValidEmail"
- DISPLAYNAME="Is Valid Email addresses"
- HINT="Function determines if the given string is a valid email address or not.">
- <PARAMETER NAME="str"
- DISPLAYNAME="Test String"/>
- </METHOD>
-
- <METHOD NAME="isValidPhone"
- DISPLAYNAME="Is Valid Phone Number"
- HINT="Function determines if the given string is a valid phone number or not.">
- <PARAMETER NAME="str"
- DISPLAYNAME="Test Value"/>
- <PARAMETER NAME="incAreaCode" TYPE="boolean"
- DISPLAYNAME="Include Area Code in Test?"/>
- </METHOD>
-
- <METHOD NAME="isValidSSN"
- DISPLAYNAME="Is Valid Social Security Number"
- HINT="Function determines if the given string is a valid SSN or not.">
- <PARAMETER NAME="str"
- DISPLAYNAME="Test Value"/>
- <PARAMETER NAME="incDashes" TYPE="boolean"
- DISPLAYNAME="Include Dashes In Test?"/>
- </METHOD>
-
- <ICON SRC16="datavalidation.gif"/>
-
- <HELP SRC="DataValidation.html"/>
- </COMPONENT>
-