Class DHTMLSuite.formValidator
Object
|
+--DHTMLSuite.formValidator
- class
DHTMLSuite.formValidator
Form validator
Demo: demo-form-validator.html
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0
Method Summary |
void
|
addMask(maskName,regexpPattern,regexpFlags)
Add regexp mask
|
Object
|
isFormValid()
Returns true if the form is valid, false otherwise
|
equalToEls
Object equalToEls
formElements
Object formElements
formUtil
Object formUtil
indicateWithBars
Object indicateWithBars
indicateWithCss
Object indicateWithCss
indicationBars
Object indicationBars
indicationImages
Object indicationImages
keyValidation
Object keyValidation
layoutCSS
Object layoutCSS
masks
Object masks
objectIndex
Object objectIndex
radios
Object radios
DHTMLSuite.formValidator
DHTMLSuite.formValidator(propArray)
Parameters:
Object
- - propArray - Associative array of properties. Possible keys:
formRef - Reference to form
indicateWithCss - Indicate error by adding a red or green border around elements. (default = false) keyValidation - Validate as you type. This applies to numeric and letteric characters (default = false) callbackOnFormValid - Name of function to execute when the form is valid callbackOnFormInvalid - Name of function to execute when the form is invalid indicateWithBars - Indicate valid and invalid form elements by a red or green bar at the left of the elements. (default = false)
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0 , 1.0
addMask
void addMask(maskName,regexpPattern,regexpFlags)
Parameters:
String
- maskName - Name of mask, i.e. the value you use in the flag attribute of your form elements.
String
- mask - Example: [0-9]
String
- regexpFlags - Regexp flags, example "gi"
isFormValid
Object isFormValid()
Returns true if the form is valid, false otherwise
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007