This example illustrates how to use the client-side API of RadAjaxManager to implement a simple text editor.
The events used here are: OnRequestStart and OnResponseEnd. The event handler functions for these are defined as follows:
<
ClientEvents
OnResponseEnd
=
"OnResponseEnd"
OnRequestStart
=
"OnRequestStart"
></
ClientEvents
>
The OnRequestStart event fires just before the XmlHttpRequest is sent to the server. In this example OnRequestStart is used to disable controls on the form and the display of status information. Moreover, using the OnRequestStart will prompt the user to cancel the AJAX request if he wishes to.
The OnResponseEnd event fires when the HTML on the page has been updated by an AJAX request. This example uses the OnResponseEnd event to update status information and re-enable form controls to allow the user to continue work.