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)
-   -   Smarty error on javascript (https://forum.x-cart.com/showthread.php?t=16229)

einnox 08-29-2005 10:13 PM

Smarty error on javascript
 
yo! yo! yo!

I am editing my navigation button located at my head.tpl files. Im trying to put a on mouse over effects on the button i have created but when i tried to run it, theres an error :

Fatal error: Smarty error: [in head.tpl line 4]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 580) in C:\estore\Smarty-2.6.9\Smarty.class.php on line 1088

Anyway, im using dreamweaver to edit, and as i evaluate it, the javascript generated by the dreamweaver was the one causing it. How can i resolve this?

Thanks

balinor 08-30-2005 04:05 AM

Put literal tags around any JS:

{literal}
insert Javascript here
{/literal}

einnox 08-30-2005 05:27 PM

Quote:

Originally Posted by balinor
Put literal tags around any JS:

{literal}
insert Javascript here
{/literal}


Oh man! you're a saviour. Thanks the error is gone but the images dont show up. I checked the relative path and found out that the path is correct.


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

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