|  | 
| 
 {literal} or no {literal} with Javascript code? For the past three months, I've had a StatCounter code placed within my home.tpl, like this: Code: ....home.tpl code......How do you explain it, if every forum I go to, I read that in order for the javascript to work inside a .tpl file, you must surround it with {literal}{/literal} tags. Tonight, I placed those tags around my javascript, and the stats I'm getting don't differ from the ones from yesterday, a week ago, and two months ago. It seems to me those tags are optional, at least in my case... I woul really like to have an explanation for this behaviour - or did I miss something? Thanks, Jack | 
| 
 Re: {literal} or no {literal} with Javascript code? You don't technically need it around all JavaScript.  Just JavaScript that has brackets {} that will interfere the Smarty parsing engine.  However, most code does have {}, so you generally need the {literal} tags. | 
| 
 Re: {literal} or no {literal} with Javascript code? That makes sense, as the StatCounter code snippet doesn't have the {} braces. Thanks for the explanation. | 
| All times are GMT -8. The time now is 07:13 PM. | 
	Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.