From 6394a6ffe3a9f3e4e698603b94503dc96f1e2652 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Thu, 2 Jun 2011 16:06:37 +0000 Subject: upported documentation changes to trunk/ --- .../pages/ActiveControls/CallbackClientSide.page | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 demos/quickstart/protected/pages/ActiveControls/CallbackClientSide.page (limited to 'demos/quickstart/protected/pages/ActiveControls/CallbackClientSide.page') diff --git a/demos/quickstart/protected/pages/ActiveControls/CallbackClientSide.page b/demos/quickstart/protected/pages/ActiveControls/CallbackClientSide.page new file mode 100644 index 00000000..c8e52585 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/CallbackClientSide.page @@ -0,0 +1,79 @@ + + +

TCallbackClientSide

+ + +

+TCallbackClientSide is used to specify client-side callback request options and client-side event handlers. +Each active control that inherits from TActiveBaseCallbackControl has a ClientSide property. +The ClientSide property is an instance TCallbackClientSide containing the actual options and event handlers +that are used by the client-side when that control is making a callback request. +The following example demonstrates the toggling of a "loading" indicator when the client-side is making a callback request. +

+ + +<com:TClientScript PradoScripts="effects" /> +Loading... + +<com:TActiveButton + Text="Click Me" + OnCallback="button_callback" + ActiveControl.CallbackParameter="value" > + <prop:ClientSide + OnLoading="Element.show('callback_status')" + OnComplete="Element.hide('callback_status')" /> +</com:TActiveButton> + + +

Events

+ +

+The following client side events are executing in order if the callback +request and response are send and received successfuly. +

+ + + +

+* 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. +

+ +

Properties

+ +

+The following properties can be used to change the way the callback request is performed. +

+ + + + + +
$Id$
\ No newline at end of file -- cgit v1.2.3