printHeader($xajax, "Server-side Events", ob_get_clean()); ob_start(); ?> printControlPanel(ob_get_clean()); $objTestScriptPlugin->printStatusPanel(); $objTestScriptPlugin->printLogPanel(); ob_start(); ?> This script demonstrates xajax's ability to register multiple 'handler' functions that will be called (in the order they are registered) in response to a single request. A variety of call options can be set for the event request including mode, method and context.