[TYPO3] Safely adding JavaScript onload or onresize events in Typo3

Cyprian Kowalczyk cyprian at pi2.pl
Sun Jun 18 12:45:57 CEST 2006


Hello Peter,

On Sun, 18 Jun 2006 12:24:18 +0200, Peter Klein <peter at umloud.dk> wrote:

>    $GLOBALS['TSFE']->additionalHeaderData[$this->extKey] .= '<script
> type="text/javascript"
> src="'.t3lib_extMgm::siteRelPath($this->extKey).'myJavaScript.js"></script>';
>    $GLOBALS['TSFE']->JSeventFuncCalls['onload'][$this->extKey] =
> 'myOnLoadJavaScriptFunc()';

Thanks for the answer, yet I know this and I need to do it from within TS  
and .html templates, not the extension :)

-- 

regards, Cyprian
pi2.pl ~ π^2 design project



More information about the TYPO3-english mailing list