TCallback

TCallback provides a basic callback handler that can be invoked from the client side by using the javascript ojbect obtained from the ActiveControl.Javascript property. You can set the CallbackParameter property from javascript directly on the object returned by ActiveControl.Javascript. Once you are ready, you can call the dispatch() method on the object to execute the callback. The server-side event OnCallback is raised when a callback is requested made.

Example usage:

<com:TCallback ID="callback1" OnCallback="callback1_Requested" /> <script type="text/javascript"> function do_callback1() { var request = <%= $this->callback1->ActiveControl->Javascript %>; request.dispatch(); } </script> <div onclick="do_callback1()">Click Me!</div>
$Id$