Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

javascript implementing problem???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-24-2003, 06:02 AM
 
ciava ciava is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: UK
Posts: 56
 

Default 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>
Reply With Quote
  #2  
Old 02-24-2003, 06:32 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default .

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

use src="../skin1/js/exmplmenu_var.js"
etc.
Reply With Quote
  #3  
Old 02-24-2003, 06:49 AM
 
ciava ciava is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: UK
Posts: 56
 

Default

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
Reply With Quote
  #4  
Old 02-24-2003, 07:12 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

have you tried an absolute URL?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:37 AM.

   

 
X-Cart forums © 2001-2020