471,853 Members | 1,255 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

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 10212
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.