[TYPO3] Newbie problem with XAJAX

Steen Suurballe SS at tips.dk
Wed Jun 14 14:10:53 CEST 2006


 

Hi all

 

I am trying to use XAJAX to get async file I/O due to otherwise very
long

Page load time.

 

Have been searching the net and it "should" work but im missing
something (obviouisly :-) ), but what ?!

 

 

Error code when "my_function" is called :

 

Fatal error: Call to undefined function: xajax_getmyimage() in
/apache8...

 

 

 

Part of code :

 

<?php

 

require_once(PATH_tslib.'class.tslib_pibase.php');

require (t3lib_extMgm::extPath("xajax")."class.tx_xajax.php");

 

$xajax = new tx_xajax();

$xajax->registerFunction("getmyimage");

$xajax->processRequests();

$xajax->printJavascript("","xajax_js\xajax.js");

 

function getmyimage($arg)

{

    $objResponse = new xajaxResponse();

    $objResponse->addAssign("$img","value",$this->cObj->IMAGE($arg));

    return $objResponse->getXML();

}

 

 

class tx_dttelefonbog_pi1 extends tslib_pibase {

.

.

.

$img = xajax_getmyimage($imgConf); <-------- FAILS

 

}

 

?>




More information about the TYPO3-english mailing list