Not displaying meny with more than one directory

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
wasabi
Beginner
Beginner
Posts: 3
Joined: Tue May 03, 2005 10:17 am

Not displaying meny with more than one directory

Post by wasabi »

The meny works perfect when theres only one directory.

e.g. http://www.mysite.com/level1/default.asp

But when I have more than one directory
e.g. http://www.mysite.com/level1/sub1/default.asp

- then the menu is not displaying.

Is there any limitations in directories or the characters in the path?
-wasabi-
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Where exactly is the menu? Both those pages look exactly the same and I'm not getting any Milonic Menu files.

Ruth
wasabi
Beginner
Beginner
Posts: 3
Joined: Tue May 03, 2005 10:17 am

Ooops

Post by wasabi »

Sorry, those were just examples, these are the correct url's:
(still under testing though)

http://www.steepstone.com/topo/default.asp
(this works fine)


http://www.steepstone.com/topo/nissedal/default.asp
(here the menu is not displaing)

- wasabi -
-wasabi-
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Some suggestions...

1. Upgrade your menu files. You're 6 levels down (7.716). We need current versions posted to give help (7.722).

2. Correct the directory name for the mmenuns4.js call. In one place you have /script/, in the other /scripst/.

3. Use server-relative addressing for your calls; i.e. -

Code: Select all

<script type="text/javascript" src="/scripts/milonic_src.js"></script>
<a class=milonic href="https://milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a> 
<script type="text/javascript">
if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenuns4.js><\/scr"+"ipt>");		
else _d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenudom.js><\/scr"+"ipt>");</script>
<script type="text/javascript" src="/scripts/menu_data.js"></script>
This way you can write just one JS call and use a simple include statement, instead of re-writing the thing for every level of your site.
John
wasabi
Beginner
Beginner
Posts: 3
Joined: Tue May 03, 2005 10:17 am

two out of three

Post by wasabi »

Done: 1 and 2
Regarding 3: I am using dreamweaver with templates, it seem like the path in :

Code: Select all

if(ns4)_d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenuns4.js><\/scr"+"ipt>");       
else _d.write("<scr"+"ipt type=text/javascript src=/scripts/mmenudom.js><\/scr"+"ipt>");</script> 
isn't updated.
Maybe because of the "scr+ipt" way this is done. Why is like this? Can this be changed?
-wasabi-
Post Reply