| Thursday 19 June 2008 8:49:44 am 
                                                                
                                                                 Hello! As far as I have read [ maybe not enough at all :-) ], to make my site work with ajax ( my site is ez v3.10 ) I have to install a basic extension first: xajax an then install ezxajax... ( at least this a solution I found hoping it works out ) What I have not found yet is where ot put the PHP code within Ez files ( not the extensions, read further ) and then access the code from an Exponential template (.tpl) or any other link elsewhere. I found the following code at the 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;
}
So two issues here that I need to solve: 
Where does this code can be placed. How to invoke the function from an Exponential template or any other link elsewhere.
 thanks! Diseño Web CubaWeb Design Cuba
 www.elfosdesign.com
 |