Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

problem parsing javascript

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 07-14-2011, 03:38 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: problem parsing javascript

ADD {literal} before script and add {/literal} after </script>
__________________
4.6.1 Platinum


Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:55 AM.

   

 
X-Cart forums © 2001-2020