PHP 클래스 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.
부터: 3.1
상속: extends Prado\Web\UI\TClientSideOptions
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getEnablePageStateUpdate ( ) : boolean
getHasPriority ( ) : boolean
getOnComplete ( ) : string
getOnException ( ) : string
getOnFailure ( ) : string
getOnInteractive ( ) : string
getOnLoaded ( ) : string
getOnLoading ( ) : string
getOnPreDispatch ( ) : string
getOnSuccess ( ) : string
getOnUninitialized ( ) : string
getPostBackParameter ( ) : string
getPostBackTarget ( ) : string
getPostState ( ) : boolean
getRequestTimeOut ( ) : integer
setEnablePageStateUpdate ( $value ) Set to true to enable the callback response to enable the viewstate update. This will automatically set HasPrority to true.
setHasPriority ( $value )
setOnComplete ( $javascript )
setOnException ( $javascript )
setOnFailure ( $javascript )
setOnInteractive ( $javascript )
setOnLoaded ( $javascript )
setOnLoading ( $javascript )
setOnPreDispatch ( $javascript )
setOnSuccess ( $javascript )
setOnUninitialized ( $javascript )
setPostBackParameter ( $value )
setPostBackTarget ( $value )
setPostState ( $value )
setRequestTimeOut ( $value )

보호된 메소드들

메소드 설명
ensureFunction ( $javascript ) : string Returns javascript statement enclosed within a javascript function.

메소드 상세

ensureFunction() 보호된 메소드

Returns javascript statement enclosed within a javascript function.
protected ensureFunction ( $javascript ) : string
리턴 string javascript statement wrapped in a javascript function

getEnablePageStateUpdate() 공개 메소드

public getEnablePageStateUpdate ( ) : boolean
리턴 boolean client-side viewstate will be updated on callback response if true. Default is true.

getHasPriority() 공개 메소드

사용 중단: since 3.3.0
public getHasPriority ( ) : boolean
리턴 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 getOnComplete ( ) : string
리턴 string javascript code for client-side onComplete event

getOnException() 공개 메소드

public getOnException ( ) : string
리턴 string javascript code for client-side onException event

getOnFailure() 공개 메소드

public getOnFailure ( ) : string
리턴 string javascript code for client-side onFailure event

getOnInteractive() 공개 메소드

public getOnInteractive ( ) : string
리턴 string javascript code for client-side onInteractive event

getOnLoaded() 공개 메소드

public getOnLoaded ( ) : string
리턴 string javascript code for client-side onLoaded event

getOnLoading() 공개 메소드

public getOnLoading ( ) : string
리턴 string javascript code for client-side onLoading event

getOnPreDispatch() 공개 메소드

public getOnPreDispatch ( ) : string
리턴 string javascript code to be executed before a request is dispatched.

getOnSuccess() 공개 메소드

public getOnSuccess ( ) : string
리턴 string javascript code for client-side onSuccess event

getOnUninitialized() 공개 메소드

public getOnUninitialized ( ) : string
리턴 string javascript code for client-side onUninitialized event

getPostBackParameter() 공개 메소드

public getPostBackParameter ( ) : string
리턴 string post back event parameter.

getPostBackTarget() 공개 메소드

public getPostBackTarget ( ) : string
리턴 string post back target ID

getPostState() 공개 메소드

public getPostState ( ) : boolean
리턴 boolean true to post the inputs of the form on callback, default is post the inputs on callback.

getRequestTimeOut() 공개 메소드

public getRequestTimeOut ( ) : integer
리턴 integer callback request timeout.

setEnablePageStateUpdate() 공개 메소드

Set to true to enable the callback response to enable the viewstate update. This will automatically set HasPrority to true.
public setEnablePageStateUpdate ( $value )

setHasPriority() 공개 메소드

사용 중단: since 3.3.0
public setHasPriority ( $value )

setOnComplete() 공개 메소드

public setOnComplete ( $javascript )

setOnException() 공개 메소드

public setOnException ( $javascript )

setOnFailure() 공개 메소드

public setOnFailure ( $javascript )

setOnInteractive() 공개 메소드

public setOnInteractive ( $javascript )

setOnLoaded() 공개 메소드

public setOnLoaded ( $javascript )

setOnLoading() 공개 메소드

public setOnLoading ( $javascript )

setOnPreDispatch() 공개 메소드

public setOnPreDispatch ( $javascript )

setOnSuccess() 공개 메소드

public setOnSuccess ( $javascript )

setOnUninitialized() 공개 메소드

public setOnUninitialized ( $javascript )

setPostBackParameter() 공개 메소드

public setPostBackParameter ( $value )

setPostBackTarget() 공개 메소드

public setPostBackTarget ( $value )

setPostState() 공개 메소드

public setPostState ( $value )

setRequestTimeOut() 공개 메소드

public setRequestTimeOut ( $value )