469,282 Members | 1,751 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

wirte javascript in .tpl file

Hi,
I am using smarty but I am unable to write javascript in tpl file
..If i write javascript then it gives error. How can i do it and how can
i define a variable in .tpl file.

Aug 31 '06 #1
2 10121
use {literal} at tje beggining of javascript and {/literal} at the end.
if there are some "{" and "}" in javascript code, it gives error.
"literal" gives output just like it is ...
rinku wrote:
Hi,
I am using smarty but I am unable to write javascript in tpl file
.If i write javascript then it gives error. How can i do it and how can
i define a variable in .tpl file.
Aug 31 '06 #2

rinku wrote:
Hi,
I am using smarty but I am unable to write javascript in tpl file
.If i write javascript then it gives error. How can i do it and how can
i define a variable in .tpl file.
You can also use {ldelim} and {rdelim}.

Sep 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by JesusFreak | last post: by
14 posts views Thread by Arturo Toledo | last post: by
8 posts views Thread by Frank | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.