View Single Post
  #1  
Old 07-13-2011, 11:09 AM
 
captainjack captainjack is offline
 

Newbie
  
Join Date: Sep 2003
Posts: 6
 

Default problem parsing javascript

Hello,

I am attempting to add the following code and it is adding ok into the template:

<script type="text/javascript">

// initialise plugins
jQuery (document).ready(function () {
jQuery('ul.sf-menu').superfish();

});
</script>

However when it executes, it only has the following in the source, and gets an error:

<script type="text/javascript">

// initialise plugins
jQuery (document).ready(function () );
</script>

Any ideas why it stripping out the actual call to superfish? Im stuck. Could it be because it thinks the curly brackets are for a smarty template? Thanks.

Currently using 4.1.10

NOTE: Found out about:

{ldelim} and {rdelim} - seemed to work for me. Sorry for the bother.
__________________
Captain Jack Communications
Reply With Quote