Page 1 of 1

javascript in content

Posted: Sat Sep 11, 2004 9:35 pm
by Anonymous
is there any way to add javascript into the content (withouh external libraries)? each time i do so i get a smarty template error.

Re: javascript in content

Posted: Sat Sep 11, 2004 9:39 pm
by Ted
Anonymous wrote:is there any way to add javascript into the content (withouh external libraries)? each time i do so i get a smarty template error.
This is an easy one.

Wrap your javascript in {literal} tags.

Code: Select all

{literal}<__script__ language="javascript">print "hi";</__script>{/literal}
wishy