| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
problem parsing javascript | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() ADD {literal} before script and add {/literal} after </script>
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|