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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Sep 27 14:07:39 CEST 2006


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.

Masi




More information about the TYPO3-dev mailing list