ezpublish doesn't like javascript string

Author Message

j y

Thursday 22 June 2006 9:11:48 am

I need to include this chunk of script into one of my templates

	<script type="text/javascript" language="JavaScript">
	<!--
		new Rico.Accordion( 'accordian', {panelHeight:305, selectPanelIndex: 0 });
	//-->
	</script>

but it keeps displaying:

new Rico.Accordion( 'accordian'

onto the website. It looks like ezpublish is trying to parse the other half? is there a way i can set this up so that it'll work properly?

Softriva .com

Thursday 22 June 2006 10:04:30 am

try to enclose your script in {literal}

{literal}
      <script type="text/javascript" language="JavaScript">


        <!--


                new Rico.Accordion( 'accordian', {panelHeight:305, selectPanelIndex: 0 });


        //-->


        </script>
{/literal}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.