X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   problem parsing javascript (https://forum.x-cart.com/showthread.php?t=60168)

captainjack 07-13-2011 11:09 AM

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.

Learner 07-14-2011 03:38 AM

Re: problem parsing javascript
 
ADD {literal} before script and add {/literal} after </script>


All times are GMT -8. The time now is 02:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.