[TYPO3-dev] add Javascript function
Christian Tauscher
typo3 at kodiak.de
Fri Feb 17 10:51:10 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/
$jsCode = "...here comes your JS code...";
$jsCode = t3lib_div::wrapJS($jsCode);
$GLOBALS["TSFE"]->additionalHeaderData[$this->extKey] = $jsCode;
Maybe this helps you,
Christian.
More information about the TYPO3-dev
mailing list