Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/validate/_base.js

  • Provides:

    • dojox.validate._base
  • Requires:

    • dojo.regexp in common
    • dojo.number in common
    • dojox.validate.regexp in common
  • dojox.validate.isText

    • parameters:
      • value: (typeof String)
        A string
      • flags: (typeof Object)
        length: Number, minlength: Number, maxlength: Number}
        flags.length  If set, checks if there are exactly flags.length number of characters.
        flags.minlength  If set, checks if there are at least flags.minlength number of characters.
        flags.maxlength  If set, checks if there are at most flags.maxlength number of characters.
    • returns
      Boolean
    • summary
      Checks if a string has non whitespace characters.
      Parameters allow you to constrain the length.
    • type
      Function
  • dojox.validate._isInRangeCache

    • alias - dojox.validate._isInRangeCache
    • type
      Object
  • dojox.validate.isInRange

    • parameters:
      • value: (typeof String)
        A string
      • flags: (typeof Object)
        max:Number, min:Number, decimal:String}
        flags.max  A number, which the value must be less than or equal to for the validation to be true.
        flags.min  A number, which the value must be greater than or equal to for the validation to be true.
        flags.decimal  The character used for the decimal point.  Default is ".".
    • returns
      Boolean
    • summary
      Validates whether a string denoting a number
      is between a max and min.
    • type
      Function
  • dojox.validate.isNumberFormat

    • parameters:
      • value: (typeof String)
        A string
      • flags: (typeof Object)
        FIXME: make pseudo-object for this
        format: String
        
        flags.format  A string or an Array of strings for multiple formats.
    • returns
      Boolean
    • summary
      Validates any sort of number based format
    • description
      Validates any sort of number based format. Use it for phone numbers,
      social security numbers, zip-codes, etc. The value can be validated
      against one format or one of multiple formats.
      
      Format Definition
         #        Stands for a digit, 0-9.
         ?        Stands for an optional digit, 0-9 or nothing.
      All other characters must appear literally in the expression.
    • example
        "(###) ###-####"       ->   (510) 542-9742
        "(###) ###-#### x#???" ->   (510) 542-9742 x153
        "###-##-####"          ->   506-82-1089       i.e. social security number
        "#####-####"           ->   98225-1649        i.e. zip code
    • example
       // returns true:
       dojox.validate.isNumberFormat("123-45", { format:"###-##" });
    • example
      Check Multiple formats:
      	dojox.validate.isNumberFormat("123-45", {
      		format:["### ##","###-##","## ###"]
      	});
    • type
      Function
  • dojox.validate.isValidLuhn

    • parameters:
      • value: (typeof String)
    • returns
      Boolean
    • summary
      Validate a String value against the Luhn algorithm.
    • description
      Validate a String value against the Luhn algorithm to verify
      its integrity.
    • type
      Function
  • dojox.validate._base

    • type
      Object
  • dojox.validate

    • type
      Object
  • dojox

    • type
      Object