Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:14

Another case where the menu will not display


Poster: gremlin
Dated: Thursday September 4 2003 - 5:58:30 BST

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.


Poster: gremlin
Dated: Thursday September 4 2003 - 6:10:04 BST

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.


Poster: Maz
Dated: Thursday September 4 2003 - 9:05:58 BST

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.


Poster: Hergio
Dated: Thursday September 4 2003 - 13:49:17 BST

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....
Quote:
<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:
<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>


Poster: John
Dated: Thursday September 4 2003 - 15:34:53 BST

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.


Poster: gremlin
Dated: Friday September 5 2003 - 14:26:26 BST

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.


Poster: John
Dated: Saturday September 6 2003 - 1:46:45 BST

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