Thread: Java menu
View Single Post
  #8  
Old 02-22-2003, 12:54 PM
 
pomfret pomfret is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Pomfret Center, CT
Posts: 94
 

Default Re: JavaScript Menus

Quote:
Originally Posted by jeffwill
I saw in an early post that it has something to do with {literal}...{/literal}. Can you elaborate on this in more detail, please.

You want to enclose javascript within {literal} {/literal} to prevent Smarty from trying to interpret that code. As Smarty parses curly braces {} for variables, you'll run into lots of problems if there's curly braces in your javascript code and it's not {literal}'d.
Reply With Quote