Class TBaseActiveCallbackControl
TBaseActiveCallbackControl is a common set of options and functionality for active controls that can perform callback requests.
The properties of TBaseActiveCallbackControl can be accessed and changed from each individual active controls' getActiveControl ActiveControl property.
The following example sets the validation group property of a TCallback component.
<com:TCallback ActiveControl.ValidationGroup="group1" ... />
Additional client-side options and events can be set using the getClientSide ClientSide property. The following example shows an alert box when a TCallback component response returns successfully.
<com:TCallback ActiveControl.ClientSide.OnSuccess="alert('ok!')" ... />
- TComponent
-
TBaseActiveControl
-
TBaseActiveCallbackControl
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Web/UI/ActiveControls/TBaseActiveControl.php
public
|
#
getClientSide( )
Callback client-side options can be set by setting the properties of the
ClientSide property. E.g. <com:TCallback
ActiveControl.ClientSide.OnSuccess="..." /> See |
public
|
#
setClientSide(
Sets the client side options. Can only be set when client side is null. |
protected
|
|
public
|
#
setCallbackOptions( string $value )
Sets default callback options. Takes the ID of a TCallbackOptions component to duplicate the client-side options for this control. The getClientSide ClientSide subproperties takes precedence over the CallbackOptions property. |
public
string
|
|
protected
array
|
#
getDefaultClientSideOptions( )
Returns an array of default callback client-side options. The default options are obtained from the client-side options of a TCallbackOptions control with ID specified by setCallbackOptions CallbackOptions. |
public
boolean
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
mixed
|
|
protected
array
|
|
public
|
#
registerCallbackClientScript( string $class, array $options = null )
Registers the callback control javascript code. Client-side options are merged and passed to the javascript code. This method should be called by Active component developers wanting to register the javascript to initialize the active component with additional options offered by the getClientSide ClientSide property. |
public
string
|
#
getJavascript( )
Returns the javascript callback request instance. To invoke a callback request for this control call the dispatch() method on the request instance. Example code in javascript var request = <%= $this->mycallback->ActiveControl->Javascript %>; request.setParameter('hello'); request.dispatch(); //make the callback request. |
public
|
__construct(),
canUpdateClientSide(),
getControl(),
getEnableUpdate(),
getOption(),
getOptions(),
getPage(),
setEnableUpdate(),
setOption()
|
GLOBAL_RAISE_EVENT_LISTENER
|