Returns javascript statement enclosed within a javascript function.
string
ensureFunction
(string $javascript)
-
string
$javascript: javascript statement, if string begins within "javascript:" the whole string is assumed to be a function.
Redefinition of:
- TClientSideOptions::ensureFunction()
- Ensure that the javascript statements are wrapped in a javascript function block as
- function(sender, parameter){ //code }
.
boolean
getEnablePageStateUpdate
()
boolean
getHasPriority
()
string
getOnInteractive
()
string
getOnPreDispatch
()
string
getOnUninitialized
()
string
getPostBackParameter
()
string
getPostBackTarget
()
integer
getRequestTimeOut
()
Set to true to enable the callback response to enable the viewstate update. This will automatically set HasPrority to true.
void
setEnablePageStateUpdate
(boolean $value)
-
boolean
$value: true enables the callback response to update the viewstate.
void
setHasPriority
(boolean $value)
-
boolean
$value: 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.
void
setOnComplete
(string $javascript)
-
string
$javascript: javascript code for client-side onComplete event.
void
setOnException
(string $javascript)
-
string
$javascript: javascript code for client-side onException event.
void
setOnFailure
(string $javascript)
-
string
$javascript: javascript code for client-side onFailure event.
void
setOnInteractive
(string $javascript)
-
string
$javascript: javascript code for client-side onInteractive event.
void
setOnLoaded
(string $javascript)
-
string
$javascript: javascript code for client-side onLoaded event.
void
setOnLoading
(string $javascript)
-
string
$javascript: javascript code for client-side onLoading event.
void
setOnPreDispatch
(string $javascript)
-
string
$javascript: javascript code to be executed before a request is dispatched.
void
setOnSuccess
(string $javascript)
-
string
$javascript: javascript code for client-side onSuccess event.
void
setOnUninitialized
(string $javascript)
-
string
$javascript: javascript code for client-side onUninitialized event.
void
setPostBackParameter
(string $value)
-
string
$value: post back event parameter.
void
setPostBackTarget
(string $value)
-
string
$value: post back target ID
void
setPostState
(boolean $value)
-
boolean
$value: true to post the inputs of the form with callback requests. Default is to post the inputs.
void
setRequestTimeOut
(integer $value)
-
integer
$value: callback request timeout
Inherited Methods
Inherited From TClientSideOptions
TClientSideOptions::__construct()
TClientSideOptions::ensureFunction()
TClientSideOptions::getOption()
TClientSideOptions::getOptions()
TClientSideOptions::setFunction()
TClientSideOptions::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()