Re: wirte javascript in .tpl file



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.

.



Relevant Pages

  • Re: wirte javascript in .tpl file
    ... rinku wrote: ... I am using smarty but I am unable to write javascript in tpl file ... .If i write javascript then it gives error. ...
    (comp.lang.php)
  • smarty for ajax
    ... I am developing some web application with smarty. ... write javascript on the "*.tpl" file and call php script from ... get the data and put the data in the div innerHTML. ... There is another way to use the smarty with Ajax? ...
    (comp.lang.php)