$objTestScriptPlugin->printHeader($xajax, "Callback Event Handlers", ob_get_clean(),"setupCallbacks();"); ob_start(); ?>
| Asynchronous | Synchronous |
|---|---|
|
Short Delay (Async) Medium Delay (Async) Long Delay (Async) |
Short Delay (Sync) Medium Delay (Sync) Long Delay (Sync) |
| Event (Clear) | Global | Local | Special |
|---|---|---|---|
| onRequest | |||
| onResponseDelay | |||
| beforeResponseProcessing | |||
| onSuccess | |||
| onExpiration | |||
| onFailure | |||
| onRedirect | |||
| onComplete |
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();