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)
-   -   Javascript smarty Error (https://forum.x-cart.com/showthread.php?t=49831)

stizz 09-22-2009 11:50 AM

Javascript smarty Error
 
Hey guys,
I'm trying to place a Jquery Featured content slider on my website.
I can't get it to work. Must have something to do with the javascript code:

<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});
</script>

Could anyone please help me out?

Thanks in advance!
Greetings from Holland,

Yorick

stizz 09-23-2009 10:51 AM

Re: Javascript smarty Error
 
Ah took me a while but i figured it out :). Used {literal}{/literal} to get it to work.

fulcan 11-29-2009 05:21 PM

Re: Javascript smarty Error
 
Hi Stizz, can you post your solution as it would be helpful to see how you solved it.

Thanks

stizz 11-29-2009 11:14 PM

Re: Javascript smarty Error
 
Sure...
Just add the literal (in red) tags to the script.

{literal}
<script type="text/javascript">
$(document).ready(function(){
$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
});
</script>{/literal}

sdfjlsdfsdf 07-29-2010 12:32 AM

Re: Javascript smarty Error
 
Thanks heaps for this, saved me from hours of head scratching :D


All times are GMT -8. The time now is 12:00 AM.

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