[TYPO3-dev] howto add js function calls to body onload event
Thomas Mammitzsch
typo at pure.kicks-ass.net
Fri Sep 29 11:50:56 CEST 2006
Martin Kutschker schrieb:
> Thomas Mammitzsch schrieb:
>> 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):
>
> Is your plugin a USER_INT?
>
>> $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.
>
> Works for USER objects, but not for USER_INTs.
ok, that works, but what about USER_INTs?
regards, Thomas
More information about the TYPO3-dev
mailing list