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)
-   -   java script on smarty page -- i get error, help appreciated (https://forum.x-cart.com/showthread.php?t=51085)

youngvet1 12-01-2009 04:58 PM

java script on smarty page -- i get error, help appreciated
 
when i try to add the following script:

http://www.dynamicdrive.com/dynamicindex14/leftrightslide2.htm


to my site.

i keep getting a smarty error, it works perfect in a static page where smarty tags are not parsed. but when smarty tags are parsed it no longer works and just shows a smart error.

your help much appreciated

youngvet1 12-01-2009 05:07 PM

Re: java script on smarty page -- i get error, help appreciated
 
forgot to mention i am trying to put this on the home page of my site

balinor 12-01-2009 05:44 PM

Re: java script on smarty page -- i get error, help appreciated
 
YOu need to put literal tags around any javascript code:

{literal}
Javascript here
{/literal}

youngvet1 12-02-2009 09:25 AM

Re: java script on smarty page -- i get error, help appreciated
 
great, thanks! worked perfect :)


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

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