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:13

I'm really in trouble now!!!


Poster: heavener
Dated: Wednesday August 25 2004 - 12:27:04 BST

The menus at the first level http://www.heavenr.com/index.html are working perfectly, flawlessly, just as desired.

The links in the menus at the second and third levels are NOT, repeat NOT working -- for example: http://www.heavenr.com/about/index.html and http://www.heavenr.com/resume/refs/references.html. The syntaxes are identical with the addition of ../ (or ../../) for all urls. They were working yesterday when my friend Jerry tested everything for me.

Arrgh! This is very bad news. I'm unemployed and frantically trying to get the site updated for employers to visit to see my marketing communications portfolio.

Please, oh please, send me an email address and I'll send you the logon and password to my FTP server.


Poster: Andy
Dated: Wednesday August 25 2004 - 12:38:12 BST

Hi,

Change ALL of your menu <SCRIPT> references to:

Code:
<script type="text/javascript" src="/includes/milonic_src.js"></script>
<script   type="text/javascript">
if(ns4)_d.write("<script language=JavaScript src=/includes/mmenuns4.js><\/script>");
  else _d.write("<script language=JavaScript src=/includes/mmenudom.js><\/script>");
</script>
<script type="text/javascript" src="/includes/menu_data.js"></script>


The problem is with the web browser not being able to find the files. One peice of advice is to never use ../ iunless there is no other way, it only makes things more complicated and you also need to know exactly which level you are at. Prefixing the file locations with / will mean that they can always be found regardless of directory depth. the only problem with this is that it may not work on your local development website. It will always work remote though providing all files are in the /includes directory.

Hope this helps
Andy

You are a lifesaver!!!


Poster: heavener
Dated: Wednesday August 25 2004 - 17:33:36 BST

Andy -- Thank you ever so much for saving me from my ignorance. I really appreciate your quick response and advice. Once again, your fix is elegant in its simplicity. As I use your menus more and learn more, I'm continually impressed with the flexibility -- and workmanship.


Poster: John
Dated: Wednesday August 25 2004 - 19:56:07 BST

Michael, thanks very much for the kind words. We all appreciate them!

Wherever possible try to use server-relative addressing, which is what Andy gave you with the leading /. It makes things so much easier!

Reference materials?


Poster: heavener
Dated: Wednesday August 25 2004 - 21:32:45 BST

Are there any good references available online? I wish I knew more. I sometimes feel inadequate relying on others to guide me past the craters. I'm just a guy with a journalism degree, not a programmer, who does websites because that's the most widely-used business/marketing communications tool with the farthest reach. Not much else is being hired around here. Most of our employers are unable to (or won't) hire outside server administrators or programmers or offer to pay for courses for me to learn. Anything you could recommend is greatly appreciated.


Poster: John
Dated: Wednesday August 25 2004 - 21:51:52 BST

Refs for HTML, or other?

Yes, to be sure. Pop HTML into Google and stand back :!: :D