PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TValidatorClientSide

TValidatorClientSide class.

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

The OnValidate event is raise before the validator validation functions are called.

The OnValidationSuccess event is raised after the validator has successfully validate the control.

The OnValidationError event is raised after the validator fails validation.

See the quickstart documentation for further details.

TComponent
Extended by TClientSideOptions
Extended by TValidatorClientSide
Package: System\Web\UI\WebControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.0
Located at Web/UI/WebControls/TBaseValidator.php
Methods summary
public string
# getOnValidate( )

Returns

string
javascript code for client-side OnValidate event.
public
# setOnValidate( string $javascript )

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

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

Parameters

$javascript
string
javascript code for client-side OnValidate event.
public
# setOnValidationSuccess( string $javascript )

Client-side OnSuccess event is raise after validation is successfull. This will override the default client-side validator behaviour.

Client-side OnSuccess event is raise after validation is successfull. This will override the default client-side validator behaviour.

Parameters

$javascript
string
javascript code for client-side OnSuccess event.
public string
# getOnValidationSuccess( )

Returns

string
javascript code for client-side OnSuccess event.
public
# setOnValidationError( string $javascript )

Client-side OnError event is raised after validation failure. This will override the default client-side validator behaviour.

Client-side OnError event is raised after validation failure. This will override the default client-side validator behaviour.

Parameters

$javascript
string
javascript code for client-side OnError event.
public string
# getOnValidationError( )

Returns

string
javascript code for client-side OnError event.
public
# setObserveChanges( boolean $value )

Parameters

$value
boolean
true to revalidate when the control to validate changes value.
public boolean
# getObserveChanges( )

Returns

boolean
true to observe changes.
Methods inherited from TClientSideOptions
ensureFunction(), getOption(), getOptions(), setFunction(), setOption()
Methods inherited from TComponent
__call(), __construct(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO