[TYPO3] Troubles getting Javascript validated between <head> tags

Kimmo Helle kimmo.helle at paitsio.com
Sat Feb 3 20:24:20 CET 2007


Thanks for this - this fixed the problem!

Cheers,
Kimmo


On 3.2.2007 10:06, in article
mailman.120899.1170489964.21325.typo3-english at lists.netfielders.de,
"Christopher Torgalson" <bedlamhotel at gmail.com> wrote:

> Hi,
> 
> On 2/2/07, Kimmo Helle <kimmo.helle at paitsio.com> wrote:
>> Hi Ries,
>> 
>> I added it to the html template and mapped it with templavoila. It shows
>> still ok in templavoila when I select headers.
> 
> 
> When you need js in the head of the document, don't use TV's 'Select
> Header Items.' Instead use TS like this:
> 
> page.headerData.5 = HTML
> page.headerData.5.value (
> /* javascript code here */
> )
> 
> However, I doubt that the actual js code needs to be in the head in
> the first place--something like this:
> 
> page.headerData.5 = HTML
> page.headerData.5.value (
> <script type="text/javascript" src="fileadmin/scripts/foo.js"></script>
> )
> page.headerData.5.value.wrap = <!--[if IE]>||<![endif]-->
> 
> ...will probably work just as well without bloating the page with
> 
> unnecessary code.
> 



More information about the TYPO3-english mailing list