| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
javascript implementing problem??? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
javascript implementing problem???
Hi all
i'm trying to implement a javascript popup menu to replace the catagories.tpl. i have managed to build one and make it work locally but when uplaoding it onto the site it doesn't seem to be bringing it up. the menu runs fully off javascript with 2 scripts placed in a directory called js. One holds the variables and the other is the actual script itself. i have placed the following code in the home.tpl just below the <body> tag and it is encased in <literal> tags yet it still brings nothing up??? are my paths wrong or is it something else i'm missing!! any help would be great! regards jon <script type='text/javascript'> function Go(){return} </script> <script type='text/javascript' src="{$jsDir}/exmplmenu_var.js"></script> <script type='text/javascript' src="{$jsDir}/menu_com.js"></script>
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
#2
|
|||||||
|
|||||||
.
looks like your paths are wrong, assuming that your script directory is in your skin1 directory,
use src="../skin1/js/exmplmenu_var.js" etc. |
|||||||
#3
|
|||||||
|
|||||||
Hi
i've tried that without any success, i've even loaded the scripts onto the same level as the home.tpl and it still refuses to see them. i've tested the scripts on my own server space and they work fine? is it something within the xcart program that refuses to bring up the menu! i can't think of anything else to test any ideas?? regards jon
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
#4
|
|||||||
|
|||||||
have you tried an absolute URL?
|
|||||||
|
|||
X-Cart forums © 2001-2020
|