Class Exanpe.AjaxValidation
Represents an AjaxValidation.
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.AjaxValidation(id, url, message)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
<static> <constant> |
Exanpe.AjaxValidation.PARAM_NAME
Constant for param name sent
|
Method Attributes | Method Name and Description |
---|---|
Called when unable to process the ajax validation.
|
|
Called before triggering an ajax validation
Does nothing by default except returing true, override to define your own behavior.
|
|
Called after a successful validation
Does nothing by default, override to define your own action.
|
|
Called after an unsuccessful validation
Does nothing by default, override to define your own action.
|
|
validate()
Validate the textfield content.
|
Class Detail
Exanpe.AjaxValidation(id, url, message)
Constructor
- Parameters:
- {String} id
- the id of the textfield to bind on
- {String} url
- the url to submit the selected value
- {String} message
- the message to display on error
Field Detail
<static> <constant>
Exanpe.AjaxValidation.PARAM_NAME
Constant for param name sent
Method Detail
afterValidationError()
Called when unable to process the ajax validation.
Does nothing by default, override to define your own action.
{boolean}
beforeValidation()
Called before triggering an ajax validation
Does nothing by default except returing true, override to define your own behavior.
- Returns:
- {boolean} false to cancel validation
onValidationCorrect()
Called after a successful validation
Does nothing by default, override to define your own action.
onValidationIncorrect()
Called after an unsuccessful validation
Does nothing by default, override to define your own action.
validate()
Validate the textfield content.