[TYPO3-dev] problems with $GLOBALS['TSFE']->JSeventFuncCalls['onload'] (Bug?)
Peter Klein
peter at umloud.dk
Wed Mar 15 15:50:21 CET 2006
Hi List. I don't know if this is a bug, but I have been trying most of the
day to get the "$GLOBALS['TSFE']->JSeventFuncCalls['onload']" to work.
In my extension I have this:
$GLOBALS['TSFE']->JSeventFuncCalls['onload'][$this->extKey]=
'resizeCaller();';
Debugging $GLOBALS['TSFE']->JSeventFuncCalls['onload'] shows that it's
correctly set, but once the page is rendered, NOTHING is added to the js
function "T3_onloadWrapper()".
I have done this several times before without problems, so I took a very
close look at my old extensions, and discovered exactly what the difference
was..
In my old working extensions, the "localconf.php" contained this line:
t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_extension_pi1.php','_pi1','list_type',1);
But in the one im working on,the "localconf.php" contained this line:
t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_extension_pi1.php','_pi1','list_type',0);
Only difference is the last parameter (cached).
And once I changed this parameter from 0 to 1, the "JSeventFuncCalls"
worked..
--
Peter Klein/Umloud Untd
More information about the TYPO3-dev
mailing list