[TYPO3-dev] add Javascript function

Thomas Mammitzsch typo at pure.kicks-ass.net
Thu Feb 16 10:36:47 CET 2006


Johnny Peck schrieb:
> Thomas,
> I know it resembles something like
> $GLOBALS['TSFE']->additionalHeaderData = '<script type="text/javascript"
> src="your/source/"></script>'; ...etc...
> 
> also there is a function additionalJavaScript() im sure. Check out the
> API for those here ->  http://typo3.org/fileadmin/typo3api-3.8.0/
> 
> Sorry for being so vague.. not much time unfortunately. Hope it helps
> anyway.
> 
> Regards,
> Johnny
>     

hi Johnny,

thanks for your response and the link to the API documtation!
i always used the api doc from the extdeveval extension which may be not
 that up-to-date. i stumbled over it by myself yesterday, when looking
at the sources ... its GLOBALS['TSFE']->additionalJavaScript[] which is
an array, not a function.
It works fine, but unfortunately it is not mentioned in any
documentation  i've seen before, which makes it hard to find, if you
don't know it.

best regards, Thomas




More information about the TYPO3-dev mailing list