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

Peter Russ peter.russ at 4many.net
Fri Sep 29 16:05:19 CEST 2006


Thomas Mammitzsch schrieb:
> 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

Why not make your plugin a USER utializing COA_INT to render as posted 
in "COA_INT in extension" at this NG?
Could solve your problem.

Regs. Peter.

-- 
Fiat lux!
Docendo discimus.
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ




More information about the TYPO3-dev mailing list