printHeader($xajax, "Client-side Event Handlers", ob_get_clean()); ob_start(); ?>
Click here to trigger event
Event handler one:
Event handler two:
printControlPanel(ob_get_clean()); $objTestScriptPlugin->printStatusPanel(); $objTestScriptPlugin->printLogPanel(); $objTestScriptPlugin->printDescriptionPanel(" This page tests the ability to attach event handlers to DOM objects. The DIV above labeled 'Click Here' has an onclick event that simply appends *click* to the output area. To attach additional even handlers, click 'Add' for either event handler One, Two or Both. Event handlers attached to the DIV are listed below it. "); $objTestScriptPlugin->printFooter();