printHeader($xajax, "Callback Event Handlers", ob_get_clean(),"setupCallbacks();"); ob_start(); ?> printControlPanel(ob_get_clean()); ob_start(); ?>
Event (Clear) Global Local Special
onRequest
onResponseDelay
beforeResponseProcessing
onSuccess
onExpiration
onFailure
onRedirect
onComplete
printStatusPanel(ob_get_clean()); $objTestScriptPlugin->printLogPanel(); $objTestScriptPlugin->printDescriptionPanel(" This test shows how callback functions are invoked during the call process. The links along the top left represent various xajax enabled function calls. Each function will sleep for a period of time on the php side, causing the browser to wait for the response. As the call progresses, xajax will call the various callback event handlers at the prescribed time. The check boxes along the top right show when each event handler is called.

During a synchronous call, you will notice that the browser will block javascript events until after the response has been received. This is due to the nature of a synchronous call.

(note: due to the nature of synchronous calls, xajax is not able to abort the request; only the browser can abort the request based on the browsers time-out settings) "); $objTestScriptPlugin->printFooter();