$aSAOH = new clsAnchor(); $aSAOH->setEvent('onclick', $aRequests['sendassignouterhtml']); $aSAOH->addChild(new clsLiteral('Test an update using the outerHTML property.')); $divPage->addChild($aSAOH); $divPage->addChild($litLineBreak); $aSPIH = new clsAnchor(); $aSPIH->setEvent('onclick', $aRequests['sendappendinnerhtml']); $aSPIH->addChild(new clsLiteral('Test an append using the innerHTML property.')); $divPage->addChild($aSPIH); $divPage->addChild($litLineBreak); $divPage->addChild($litLineBreak); $divContent = new clsDiv(array('attributes' => array('id' => 'content'), 'children' => array(new clsLiteral('This content has not been modified, click an option above to execute a test.')))); $divPage->addChild($divContent); $title = new clsTitle(); $title->addChild(new clsLiteral('xajax Test Suite - Assign / Append')); $style = new clsStyle(); $style->setAttribute('type', 'text/css'); $style->addChild(new clsLiteral('#content { border: 1px solid #555555; }')); $head = new clsHead(); $head->addChild($title); $head->setXajax($xajax); $head->addChild($style); $body = new clsBody(); $body->addChild($divPage); $html = new clsHtml(); $html->addChild($head); $html->addChild($body); $document = new clsDocument(); $document->addChild(new clsDocType('HTML', '4.01', 'STRICT')); $document->addChild($html); $document->printHTML();