home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / ScriptBuilder / NOSB30_TRIAL.exe / data1.cab / Program_Files / CompLib / dataValidationComponent.scc < prev    next >
Encoding:
Text File  |  1998-10-05  |  4.8 KB  |  120 lines

  1. <!--Created with NetObjects Script Component Pad-->
  2. <!-- file dataValidationComponent.ecc
  3.         ScriptComponent Interface file for dataValidation.js -->
  4.  
  5. <?XML>
  6. <!DOCTYPE COMPONENT SYSTEM "ecmascriptcomponent.dtd">
  7.  
  8. <COMPONENT NAME="com.netobjects.dataValidation" ENV="client"
  9.                DISPLAYNAME="Data Validation"
  10.                HINT="Creates an object that contains data validation functions for strings, numbers and objects."
  11.                SRC="dataValidation.js">
  12.  
  13.    <PROPERTY NAME="name"
  14.                  DISPLAYNAME="name"
  15.                  HINT="(REQUIRED) Unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page."
  16.                  DEFAULTVALUE="dataValidation1">
  17.                  </PROPERTY>
  18.  
  19.     <METHOD NAME="isAlpha"
  20.                DISPLAYNAME="Is Alpha?"
  21.                HINT="Function determines if all elements of a given string are alpha (i.e. a-z or A-Z)">
  22.       <PARAMETER NAME="str" TYPE="string"
  23.                      DISPLAYNAME="Test String"/>
  24.                </METHOD>
  25.  
  26.     <METHOD NAME="isAlphaNum"
  27.                DISPLAYNAME="Is Alpha Num?"
  28.                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)">
  29.       <PARAMETER NAME="str" TYPE="string"
  30.                      DISPLAYNAME="Test String"/>
  31.                </METHOD>
  32.  
  33.     <METHOD NAME="isAlphaNumOrUnderscore"
  34.                DISPLAYNAME="Is Alpha Numeric or Underscore?"
  35.                HINT="Function determines if all elements of a given string are alpha, numeric, or underscore(i.e. a-z, 0-9, _, or A-Z)">
  36.       <PARAMETER NAME="str" TYPE="string"
  37.                      DISPLAYNAME="Test String"/>
  38.                </METHOD>
  39.  
  40.     <METHOD NAME="isBlank"
  41.                DISPLAYNAME="Is Blank?"
  42.                HINT="Function determines if the given string is blank or not.">
  43.       <PARAMETER NAME="str" TYPE="string"
  44.                      DISPLAYNAME="Test String"/>
  45.                </METHOD>
  46.  
  47.     <METHOD NAME="isInt"
  48.                DISPLAYNAME="Is Integer?"
  49.                HINT="Function determines if the given value is an integer or not.">
  50.       <PARAMETER NAME="numstr"
  51.                      DISPLAYNAME="Test Integer"/>
  52.       <PARAMETER NAME="allowNegatives" TYPE="boolean"
  53.                      DISPLAYNAME="Allow Negatives?"/>
  54.                </METHOD>
  55.  
  56.     <METHOD NAME="isNull"
  57.                DISPLAYNAME="Is Null"
  58.                HINT="Function determines if the given string is null or not.">
  59.       <PARAMETER NAME="val"
  60.                      DISPLAYNAME="Test Value"/>
  61.                </METHOD>
  62.  
  63.     <METHOD NAME="isNum"
  64.                DISPLAYNAME="Is Number"
  65.                HINT="Function determines if the given value is a number or not.">
  66.       <PARAMETER NAME="numstr"
  67.                      DISPLAYNAME="Test Number"/>
  68.                </METHOD>
  69.  
  70.     <METHOD NAME="isUndef"
  71.                DISPLAYNAME="Is Undefined"
  72.                HINT="Function determines if the given value is undefined or not.">
  73.       <PARAMETER NAME="numstr"
  74.                      DISPLAYNAME="Test Value"/>
  75.                </METHOD>
  76.  
  77.     <METHOD NAME="isValid5DigitZip"
  78.                DISPLAYNAME="Is Valid 5 Digit Zipcode"
  79.                HINT="Function determines if the given string is a valid zipcode or not.">
  80.       <PARAMETER NAME="str"
  81.                      DISPLAYNAME="Test ZipCode"/>
  82.                </METHOD>
  83.  
  84.     <METHOD NAME="isValid5Plus4DigitZip"
  85.                DISPLAYNAME="Is Valid 5+4 digit Zipcode"
  86.                HINT="Function determines if the given string is a valid extended zipcode or not.">
  87.       <PARAMETER NAME="str"
  88.                      DISPLAYNAME="Test ZipCode"/>
  89.                </METHOD>
  90.     
  91.     <METHOD NAME="isValidEmail"
  92.                DISPLAYNAME="Is Valid Email addresses"
  93.                HINT="Function determines if the given string is a valid email address or not.">
  94.       <PARAMETER NAME="str"
  95.                      DISPLAYNAME="Test String"/>
  96.                </METHOD>
  97.  
  98.     <METHOD NAME="isValidPhone"
  99.                DISPLAYNAME="Is Valid Phone Number"
  100.                HINT="Function determines if the given string is a valid phone number or not.">
  101.       <PARAMETER NAME="str"
  102.                      DISPLAYNAME="Test Value"/>
  103.       <PARAMETER NAME="incAreaCode" TYPE="boolean"
  104.                      DISPLAYNAME="Include Area Code in Test?"/>
  105.                </METHOD>
  106.  
  107.     <METHOD NAME="isValidSSN"
  108.                DISPLAYNAME="Is Valid Social Security Number"
  109.                HINT="Function determines if the given string is a valid SSN or not.">
  110.       <PARAMETER NAME="str"
  111.                      DISPLAYNAME="Test Value"/>
  112.       <PARAMETER NAME="incDashes" TYPE="boolean"
  113.                      DISPLAYNAME="Include Dashes In Test?"/>
  114.                </METHOD>
  115.  
  116.     <ICON SRC16="datavalidation.gif"/>
  117.  
  118.     <HELP SRC="DataValidation.html"/>
  119. </COMPONENT>
  120.