Had private talk with Massimo and he was able to solve the problem already.
The debug output says that it was unable to find the xajax_javascript operator. Apparently one of the other extensions or settings/override/site.ini.append.php had a setting that clears the array used for template function/operator autoload paths:
I already have my site finished, but now I’m trying to plug it with xajax 1.1. I have this PHP code (from the eZ forum):
function xxxx($object_id) {
// HTTP Response
$objResponse = new xajaxResponse();
// template init
$tpl =& templateInit();
// Add Variable to the template
$tpl->setVariable(’object_id’, $object_id);
// fetch template
$html = $tpl->fetch(
“extension/mod_myextension/design/standard/templates/foo/bar.tpl” );
$objResponse->addAssign(”mydiv”, “innerHTML”, $html);
// response
return $objResponse;
}
I need to know where to write this code, and how can I invoke this function from any of my links, given the objectID of the node which content will be shown.
Plase, any hints will be really appreciated because we are almost in deadline of our project.
thanks in advance, Marcel
Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com
Another "tip" for ezxajax troobleshooting : don't forget to add the pagelayout code below in the head part of <b>every pagelayout.tpl you use</b> (ie. don't forget \design\admin\templates\pagelayout.tpl )