[TYPO3-dev] howto add js function calls to body onload event
Mauro Lorenzutti
mauro.lorenzutti at webformat.com
Wed Sep 27 11:11:24 CEST 2006
Ciao Thomas,
> i try to call a Javascript function on the onLoad-Event. I found the
> following to do the job, but it doesn't work out (the body-tag is empty):
$GLOBALS['TSFE']->>JSeventFuncCalls['onload']['myOnloadEvent']=
> 'my_function();';
> it seems to me, that the JS-Events are rendered by
> class.tslib_pagegen.php _before_ the
> $GLOBALS['TSFE']->JSeventFuncCalls
> array is filled from my Frontend-Plugin.
> Any ideas?
I don't know if this can help you but I'm using the extention
de_addbodyjscript.
Regards,
Mauro Lorenzutti
e-mail: mauro.lorenzutti at webformat.com
---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
Tel +39-0427-926.389 -- Fax +39-0427-927.653
info at webformat.com -- www.webformat.com
---------------------------------------------------------
More information about the TYPO3-dev
mailing list