Re: [SMARTY] java script
| From: | Bertrand DUNOGIER | Date: | Fri, 03 Jan 2003 11:24:00 +0000 |
| Subject: | Re: [SMARTY] java script | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7000@lists.php.net to get a copy of this message | ||
S> but i receive this error:
S> Parse error: parse error, expecting `')'' in
S> d:\share\webdesign\avdija\web\bihnet1\smarty\templates_c\%%117\%%1172603085\
S> index.tpl.php on line 4
S> How do I use java script with smarty
btw, it's javascript, not java script
and since {} is smarty default separator for functions / variables,
you have to tell smarty not to parse your javascript code: put
{literal} / {/literal} around your javascript code.
Katana
P.S. You can check http://smarty.incutio.com, there are
very good FAQ
here.