![]() |
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. |
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.