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.