Forums / Setup & design / Javascript problems / Comment13984
Tom Couwberghs
Wednesday 05 November 2003 11:58:02 pm
Hi Tore,
First of all, your server config looks good to me.
As you'll know eZP makes use of { and } as syntax for its template operators. So if you write javascript-code directly in your templates it won't work because eZP will try to parse it with it's template engine.
There are a couple of ways to get around this:
You could replace all your javascript { and } with respectively {ldelim} and {rdelim}, as this will produce the wanted character. But it will make your javascript code a mess.
Another way to do this is writing a .js file with the javascript code in it and writing a tag like
<script language="JavaScript" src="path/to/your/file.js"></script>
So the general idea is: use js-files to put as much code in as you can, and if you need to embed js-code in your template use the {ldelim} and {rdelim} statements.
HTH
Tom