Class TCallbackClientSide
TCallbackClientSide class.
The following client side events are executing in order if the callback request and response are send and received successfuly.
- onPreDispatch executed before a request is dispatched.
- onUninitialized executed when callback request is uninitialized.
- onLoading* executed when callback request is initiated
- onLoaded* executed when callback request begins.
- onInteractive executed when callback request is in progress.
- onCompleteexecuted when callback response returns.
- onSuccess executed when callback request returns and is successful.
- onFailure executed when callback request returns and fails.
- onException raised when callback request fails due to request/response errors.
- Note that theses 2 events are not fired correctly by Opera. To make them work in this browser, Prado will fire them just after onPreDispatch.
In a general way, onUninitialized, onLoading, onLoaded and onInteractive events are not implemented consistently in all browsers.When cross browser compatibility is needed, it is best to avoid use them
The OnSuccess and OnFailure events are raised when the response is returned. A successful request/response will raise OnSuccess event otherwise OnFailure will be raised.
- PostState true to collect the form inputs and post them during callback, default is true.
- RequestTimeOut The request timeout in milliseconds.
- HasPriority true to ensure that the callback request will be sent immediately and will abort existing prioritized requests. It does not affect callbacks that are not prioritized.
- EnablePageStateUpdate enable the callback response to enable the viewstate update. This will automatically set HasPriority to true when enabled.
- TComponent
-
TClientSideOptions
-
TCallbackClientSide
Package: System\Web\UI\ActiveControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gamil[dot]com>
Since: 3.1
Located at Web/UI/ActiveControls/TCallbackClientSide.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gamil[dot]com>
Since: 3.1
Located at Web/UI/ActiveControls/TCallbackClientSide.php
protected
string
|
#
ensureFunction( string $javascript )
Returns javascript statement enclosed within a javascript function. |
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
#
setEnablePageStateUpdate( boolean $value )
Set to true to enable the callback response to enable the viewstate update. This will automatically set HasPrority to true. |
public
boolean
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
getOption(),
getOptions(),
setFunction(),
setOption()
|
GLOBAL_RAISE_EVENT_LISTENER
|