View Single Post
  #16  
Old 11-05-2002, 04:46 AM
 
chris chris is offline
 

Senior Member
  
Join Date: Sep 2002
Location: UK
Posts: 145
 

Default ArmyNavy - adding javascript within a tpl

I think other have gone off at a tangent

all you have to do is add the line:
{literal}
at the beginning of your javascript
and finish off with
{/literal}

what this does is tell smarty to ignore everything inside the brackets - i.e to read it (javascript) literally,

Chris
__________________
Chris
some carts at v4.4.5 security patched on a hardened managed unix server
Reply With Quote