I'm really in trouble now!!!

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
heavener
Beginner
Beginner
Posts: 8
Joined: Mon Aug 23, 2004 6:52 pm
Location: Redmond, Washington USA
Contact:

I'm really in trouble now!!!

Post by heavener »

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.
Sincerely,
Michael Heavener, ABC
heavener@heavenr.com
425 885-0961
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Change ALL of your menu <SCRIPT> references to:

Code: Select all

<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
heavener
Beginner
Beginner
Posts: 8
Joined: Mon Aug 23, 2004 6:52 pm
Location: Redmond, Washington USA
Contact:

You are a lifesaver!!!

Post by heavener »

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.
Sincerely,
Michael Heavener, ABC
heavener@heavenr.com
425 885-0961
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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!
John
heavener
Beginner
Beginner
Posts: 8
Joined: Mon Aug 23, 2004 6:52 pm
Location: Redmond, Washington USA
Contact:

Reference materials?

Post by heavener »

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.
Sincerely,
Michael Heavener, ABC
heavener@heavenr.com
425 885-0961
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Refs for HTML, or other?

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