[TYPO3-dev] howto add js function calls to body onload event

Thomas Mammitzsch typo at pure.kicks-ass.net
Wed Sep 27 11:04:08 CEST 2006


hi list,

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?

regards, Thomas




More information about the TYPO3-dev mailing list