[TYPO3-dev] add Javascript function
Stefan Geith
typo3dev at geithware.de
Thu Feb 16 11:40:56 CET 2006
Thomas Mammitzsch schrieb:
> 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/
$GLOBALS['TSFE']->setJS('identifier',$JavaScriptText);
But this seems to be buggy in 3.8/3.8.1:
I got 'scrambled' JavaScript in my Source,
if adding much JavaScript ...
-
Stefan
More information about the TYPO3-dev
mailing list