[TYPO3-english] includeJS special characters

Lamb, Brian blamb at jcvi.org
Tue Mar 9 21:39:11 CET 2010


Greetings all, 
 
I am trying to load an external JavaScript file but it is not loading correctly. This is because the external file uses an amperand and then typo3 translates that to HTML special characters: 
 
page.includeJS { 
  file1 = http://www.externaljs.com/random.js&param=value
  file1.type = text/javascript
  file1.external = 1
}
 
becomes
 
script src=http://www.externaljs.com/random.js&param=value
 
How can I prevent this from happening?
 
Thanks, 
 
Brian Lamb
 


More information about the TYPO3-english mailing list