I have added the methods per this topic: http://forum.cmsmadesimple.org/index.ph ... 909.0.html but it didn't help.
Here is the code I have so far:
Code: Select all
require_once($_SERVER['DOCUMENT_ROOT'] .'/lib/xajax/xajax.inc.php');
$xajax = new xajax();
$xajax->registerFunction('myFunction');
$xajax->processRequests();
$this->smarty->assign('js',$xajax->getJavascript($config['root_url'] . '/lib/xajax')."\n");
function myFunction($arg)
{
// do some stuff based on $arg like query data from a database and
// put it into a variable like $newContent
$newContent = "Value of $arg: ".$arg;
// Instantiate the xajaxResponse object
$objResponse = new xajaxResponse();
// add a command to the response to assign the innerHTML attribute of
// the element with id="SomeElementId" to whatever the new content is
$objResponse->addAssign("IntroRt", "innerHTML", $newContent);
//return the xajaxResponse object
return $objResponse->getXML();
}