} } $page = new clsPage(); $aRequests = $xajax->register(XAJAX_CALLABLE_OBJECT, $page); $xajax->processRequest(); $sRoot = dirname(dirname(dirname(__FILE__))); if (false == class_exists('xajaxControl')) { $sCore = '/xajax_core'; include_once $sRoot . $sCore . '/xajaxControl.inc.php'; } $sControls = '/xajax_controls'; foreach (array('/document.inc.php', '/structure.inc.php', '/content.inc.php', '/misc.inc.php') as $sInclude) { include $sRoot . $sControls . $sInclude; } $litNonBreakSpace = new clsLiteral(' '); $divPage = new clsDiv(); $divAssignInnerHTML = new clsDiv(); $aSAIH = new clsAnchor(); $aSAIH->setEvent('onclick', $aRequests['sendassigninnerhtml']); $aSAIH->addChild(new clsLiteral('Update Content via an assign on the innerHTML property.')); $divAssignInnerHTML->addChild($aSAIH); $divPage->addChild($divAssignInnerHTML); $divStyle = new clsDiv(); $divMessage = new clsDiv(); $divMessage->addChild(new clsLiteral('Update style.background property via assign: ')); $divStyle->addChild($divMessage); $divColor = new clsDiv(); $aSASB_Red = new clsAnchor(); $aSASB_Red->setEvent('onclick', $aRequests['sendassignstylebackground'], array(array(0, XAJAX_QUOTED_VALUE, '#ff5555'))); $aSASB_Red->addChild(new clsLiteral('Red')); $divColor->addChild($aSASB_Red);
return $objResponse; } } $page = new clsPage(); $aRequests = $xajax->register(XAJAX_CALLABLE_OBJECT, $page); $xajax->processRequest(); $sRoot = dirname(dirname(dirname(__FILE__))); $sCore = '/xajax_core'; include_once $sRoot . $sCore . '/xajaxControl.inc.php'; $sControls = '/xajax_controls'; foreach (array('/document.inc.php', '/doctype.inc.php', '/html.inc.php', '/head.inc.php', '/title.inc.php', '/body.inc.php', '/literal.inc.php', '/anchor.inc.php', '/div.inc.php') as $sInclude) { include $sRoot . $sControls . $sInclude; } $litLineBreak = new clsLiteral('<br />'); $litSpace = new clsLiteral(' '); $divPage = new clsDiv(); $aSAIH = new clsAnchor(); $aSAIH->setEvent('onclick', $aRequests['sendassigninnerhtml']); $aSAIH->addChild(new clsLiteral('Update Content via an assign on the innerHTML property.')); $divPage->addChild($aSAIH); $divPage->addChild($litLineBreak); $divPage->addChild(new clsLiteral('Update style.background property via assign: ')); $divPage->addChild($litLineBreak); $aSASB_Red = new clsAnchor(); $aSASB_Red->setEvent('onclick', $aRequests['sendassignstylebackground'], array(array(0, XAJAX_QUOTED_VALUE, '#ff5555'))); $aSASB_Red->addChild(new clsLiteral('Red')); $divPage->addChild($aSASB_Red); $divPage->addChild($litSpace); $aSASB_Green = new clsAnchor(); $aSASB_Green->setEvent('onclick', $aRequests['sendassignstylebackground'], array(array(0, XAJAX_QUOTED_VALUE, '#55ff55'))); $aSASB_Green->addChild(new clsLiteral('Green'));