[TYPO3] Newbie problem with XAJAX
Ries van Twisk
typo3 at rvt.dds.nl
Wed Jun 14 14:45:51 CEST 2006
Steen,
checkout the whiteboard extension made by Kasper the Ghost
It's shows how to properly use ajax calls using the EID method.
Ries
>
>
> 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
>
>
>
> }
>
>
>
> ?>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
--
Ries van Twisk
Freelance Typo3 Developer
=== Private:
email: ries at vantwisk.nl
web: http://www.rvantwisk.nl/freelance-typo3.html
skype: callto://r.vantwisk
=== Work:
email: ries at livetravelguides.com
web: http://www.livetravelguides.com
More information about the TYPO3-english
mailing list