[TYPO3-dev] Javascript in extension template
Christopher Schnell
typo3 at mda.ch
Thu Mar 27 16:32:11 CET 2008
Hi Devs,
today, I encountered a very strange problem in an extension and I think
it might be a general TYPO3 bug.
The extension, I am talking about, has a javascript inside the
html-template which has lines like the following
minute = (minute<10) ? '0'+minute : minute;
If the page with a line like this is rendered by the frontend, the next
lines in the script-code are absolute rubbish. Some chars are missing,
others are replaced, linebreaks disappear, just pure rubbish. If I open
the same script in fileadmin again, it is perfectly well.
After heavy testing and swearing, I made the script external and then,
it worked. Does anyone know how this could have happened? If you want to
test the extension, it can be found here.
http://typo3.org/extensions/repository/view/mda_sbbtimetable/1.0.0/
Please note that I am not responible for the javascript myself, it was
written by someone of the "Schweizer Bundesbahnen".
My environment:
TYPO3 4.1.6
PHP 5.2.5
Regards,
Christopher.
More information about the TYPO3-dev
mailing list