PHP Class Prado\Web\UI\ActiveControls\TCallbackClientSide
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.
-
EnablePageStateUpdate enable the callback response to enable the
viewstate update.
Afficher le fichier
Open project: pradosoft/prado
Méthodes publiques
Méthodes protégées
Méthode |
Description |
|
ensureFunction ( $javascript ) : string |
Returns javascript statement enclosed within a javascript function. |
|
Method Details
ensureFunction()
protected méthode
Returns javascript statement enclosed within a javascript function.
getEnablePageStateUpdate()
public méthode
getHasPriority()
public méthode
public getHasPriority ( ) : boolean |
Résultat |
boolean |
true if the callback request has priority and will abort
existing prioritized request in order to send immediately. It does not
affect callbacks that are not prioritized. Default is true. |
getOnComplete()
public méthode
getOnException()
public méthode
getOnFailure()
public méthode
getOnInteractive()
public méthode
getOnLoaded()
public méthode
getOnLoading()
public méthode
getOnPreDispatch()
public méthode
getOnSuccess()
public méthode
getOnUninitialized()
public méthode
getPostBackParameter()
public méthode
getPostBackTarget()
public méthode
getPostState()
public méthode
public getPostState ( ) : boolean |
Résultat |
boolean |
true to post the inputs of the form on callback, default
is post the inputs on callback. |
getRequestTimeOut()
public méthode
setEnablePageStateUpdate()
public méthode
Set to true to enable the callback response to enable the viewstate
update. This will automatically set HasPrority to true.
setHasPriority()
public méthode
setOnComplete()
public méthode
setOnException()
public méthode
setOnFailure()
public méthode
setOnInteractive()
public méthode
setOnLoaded()
public méthode
setOnLoading()
public méthode
setOnPreDispatch()
public méthode
setOnSuccess()
public méthode
setOnUninitialized()
public méthode
setPostBackParameter()
public méthode
setPostBackTarget()
public méthode
setPostState()
public méthode
setRequestTimeOut()
public méthode