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 implementing problem??? (https://forum.x-cart.com/showthread.php?t=1615)

ciava 02-24-2003 06:02 AM

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>

PhilJ 02-24-2003 06:32 AM

.
 
looks like your paths are wrong, assuming that your script directory is in your skin1 directory,

use src="../skin1/js/exmplmenu_var.js"
etc.

ciava 02-24-2003 06:49 AM

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

PhilJ 02-24-2003 07:12 AM

have you tried an absolute URL?


All times are GMT -8. The time now is 11:04 PM.

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