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 property.
The following example to set the validation group property of a TCallback component.
- <com:TCallback ActiveControl.ValidationGroup="group1" ... />
Additional client-side options and events can be set using the ClientSide property. The following example to show an alert box when a TCallback component response returns successfully.
- <com:TCallback Active.Control.ClientSide.OnSuccess="alert('ok!')" ... />
Located in /Web/UI/ActiveControls/TBaseActiveControl.php (line 161)
TComponent | --TBaseActiveControl | --TBaseActiveCallbackControl
Callback client-side options can be set by setting the properties of the ClientSide property. E.g. <com:TCallback ActiveControl.ClientSide.OnSuccess="..." /> See TCallbackClientSide for details on the properties of ClientSide.
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 setCallbackOptionsID.
Returns the javascript callback request instance. To invoke a callback
request for this control call the <tt>dispatch()</tt> method on the request instance. Example code in javascript
- var request = <%= $this->mycallback->ActiveControl->Javascript %>;
- request.setParameter('hello');
- request.dispatch(); //make the callback request.
Alternatively,
- //dispatches immediately
- Prado.Callback("<%= $this->mycallback->UniqueID %>",
- $this->mycallback->ActiveControl->JsCallbackOptions);
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 ClientSide property.
Sets default callback options. Takes the ID of a TCallbackOptions component to duplicate the client-side options for this control. The getClientSide subproperties has precendent over the CallbackOptions property.
Sets the client side options. Can only be set when client side is null.
Inherited From TBaseActiveControl
TBaseActiveControl::__construct()
TBaseActiveControl::canUpdateClientSide()
TBaseActiveControl::getControl()
TBaseActiveControl::getEnableUpdate()
TBaseActiveControl::getOption()
TBaseActiveControl::getOptions()
TBaseActiveControl::getPage()
TBaseActiveControl::setEnableUpdate()
TBaseActiveControl::setOption()
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
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 Mon, 21 Apr 2008 11:30:59 -0400 by phpDocumentor 1.3.0RC4