## Class TValidatorClientScript

Description

TValidatorClientScript class.

Client-side validator events can be modified through the TBaseValidator::getClientSide property of a validator. The subproperties of ClientSide are those of the TValidatorClientScript properties. The client-side validator supports the following events.

The <tt>OnValidate</tt> event is raise before the validator validation functions are called.

The <tt>OnSuccess</tt> event is raised after the validator has successfully validate the control.

The <tt>OnError</tt> event is raised after the validator fails validation.

See the quickstart documentation for further details.

- since: 3.0
- version: $Revision: $ $Date: $
- author: Wei Zhuo <weizhuo[at]gmail[dot]com>

Located in /Web/UI/WebControls/TBaseValidator.php (line 539)

    TComponent
       |
       --TValidatorClientScript

Method Summary
TValidatorClientScript __construct ()
string getOnError ()
string getOnSuccess ()
string getOnValidate ()
array getOptions ()
void setOnError (string $javascript)
void setOnSuccess (string $javascript)
void setOnValidate (string $javascript)
Methods
Constructor __construct (line 549)

Constructor.

- access: public

TValidatorClientScript __construct ()
getOnError (line 603)

- return: javascript code for client-side OnError event.
- access: public

string getOnError ()
getOnSuccess (line 585)

- return: javascript code for client-side OnSuccess event.
- access: public

string getOnSuccess ()
getOnValidate (line 557)

- return: javascript code for client-side OnValidate event.
- access: public

string getOnValidate ()
getOptions (line 611)

- return: list of client-side event code.
- access: public

array getOptions ()
setOnError (line 595)

Client-side OnError event is raised after validation failure.

This will override the default client-side validator behaviour.

- access: public

void setOnError (string $javascript)

- string $javascript: javascript code for client-side OnError event.

setOnSuccess (line 577)

Client-side OnSuccess event is raise after validation is successfull.

This will override the default client-side validator behaviour.

- access: public

void setOnSuccess (string $javascript)

- string $javascript: javascript code for client-side OnSuccess event.

setOnValidate (line 567)

Client-side OnValidate validator event is raise before the validators validation functions are called.

- access: public

void setOnValidate (string $javascript)

- string $javascript: javascript code for client-side OnValidate event.

#### Inherited Methods

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Sun, 04 Jun 2006 18:58:39 -0400 by phpDocumentor 1.3.0RC4