[TYPO3] How to include javascript in page header from plugin code?

Mauro Lorenzutti mauro.lorenzutti at webformat.com
Thu Apr 13 12:04:08 CEST 2006


Hi Chetan,

> I would like to know how one can include javascript in page header from
> plugin code.

If $js contains your sript, you can use the following code:
$GLOBALS['TSFE']->setJS($this->extKey, $js);

Regards,
 Mauro Lorenzutti


e-mail:  mauro.lorenzutti at webformat.com

---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
     Tel +39-0427-926.389  --  Fax +39-0427-927.653
       info at webformat.com  --  www.webformat.com
---------------------------------------------------------




More information about the TYPO3-english mailing list