addAlert("Hello"); // $testResponseOutput = htmlspecialchars($testResponse->getXML()); $testResponse2 = new xajaxResponse(); $testResponse2->loadXML($testResponse->getXML()); $testResponse2->addReplace("this", "is", "a", "replacement"); $testResponseOutput = htmlspecialchars($testResponse2->getXML()); $objResponse = new xajaxResponse(); $objResponse->addAssign("submittedDiv", "innerHTML", $testResponseOutput); return $objResponse; } $xajax = new xajax(); //$xajax->debugOn(); $xajax->registerFunction("showOutput"); $xajax->processRequests(); $xajax->autoCompressJavascript("../xajax_js/xajax.js"); ?>