Another case where the menu will not display

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
gremlin
Beginner
Beginner
Posts: 7
Joined: Thu Sep 04, 2003 5:52 am

Another case where the menu will not display

Post by gremlin »

Sorry to bother you guys with the same question as many other people here, but my menu will not display. The difference, however, is that the menu works perfectly on my local hard drive, but when I upload it to the website it does not display. I even tried using the menu.htm that comes with the file but no menu displays on the page. In most other cases, the page finishes with errors, but here there are no errors...it's as though the javascript is disabled or something. Please check it out and help me so I can get working on my site again. The menu.htm (I uploaded the contents of the zip unchanged for testing) is at http://www.shorthills225.org/hrts/menu5/menu.htm and the actual page it should work on is http://www.shorthills225.org/hrts/

Version 3 was working without issue. Also, I have tried using "", "/" and the absolute path beginning and ending with "/" obtained from a pwd in SSH. Please help me out...I need to get this site operational soon for this organization. Thanks much.
gremlin
Beginner
Beginner
Posts: 7
Joined: Thu Sep 04, 2003 5:52 am

Post by gremlin »

Ok I figured out that it wasn't running due to the fact that the permissions were set weird for some reason on this UNIX system. That is fixed now though and the menu will run on the test menu page however not on the real site. Please advise. Thanks again.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Did you look in menu_src.js? You need a file path, can use http://www.
remember to remove the 2 slashes at the beginning of that line.
You also need all the js files in the same directory.

These are the most common problems.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Oh my gosh, you were SO close...uncomment the scriptpath variable in the milonic_src file (remove the //) and that seems like it will fix you up good. You set your scriptpath exactly how it should look, its just not reading it. One thing to mention....you are referencing your menu files in your page like so....
<SCRIPT language=JavaScript src="menu5/milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="menu5/menu_data.js" type=text/javascript></SCRIPT>
A word of caution, if you use these exact lines in another page in another directory, it may not work because you are using relative linking. If you want two lines of script that you can paste into your site into any page and still have it access the menus ok is this...

Code: Select all

<SCRIPT language=JavaScript src="/hrts/menu5/milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/hrts/menu5/menu_data.js" type=text/javascript></SCRIPT>
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Maz, the same idea should apply to scriptpath; i.e., use server-relative addressing (/directory/) rather than a full URL. At least that seems to be what Andy's notes elude to.
John
gremlin
Beginner
Beginner
Posts: 7
Joined: Thu Sep 04, 2003 5:52 am

Post by gremlin »

Ohhhhhhhhhhhh my gosh......I CANNOT believe I didn't see that.....the stupid line was commented the whole time. I have been trying to figure this out for what is bordering on weeks. LOL Thanks for pointing out the obvious guys. Much appreciated.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

That's why we're here - Dave gets some, and I get some...
John
Post Reply