Menu disappeared ?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Menu disappeared ?

Post by Shelleuk »

My menu has been working fine up to now...but something has happened to make the whole thing disappear from the site that I am in the process of building...the paths seem to be fine as I have all js pages in the root along with all my htm pages... I had been filling in the menu_data.js when this happened, but that shouldn't have made any difference....?

Haven't altered this at all:

<SCRIPT language=JavaScript src="/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/menu_data.js" type=text/javascript></SCRIPT>
<script language="JavaScript" type="text/JavaScript" scr="/java.js">

Am building the site using Dreamweaver MX.

Any suggestions ?
Michelle Cannon
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Menu disappeared ?

Post by kevin3442 »

Shelleuk wrote:My menu has been working fine up to now...but something has happened to make the whole thing disappear...I had been filling in the menu_data.js when this happened, but that shouldn't have made any difference....?
Actually, depending on what you do, it could make a big difference... Plus, if you haven't altered anything else, logic suggests that the culprit is somewhere in the changes to menu_data.js (jeez... now I sound like Mr. Spock).

Can you post a URL to the site, so we can have a look... check to see what might be the problem? If not, can you post the contents of your menu_data.js file here (inside of BBCode "code" tags please!)?

Kevin
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi Michelle,

The error message on your website is "Error: Unterminated string constant" -
What this means is that you have a text string opened but it hasn't been
closed somewhere in your code.

The error message states that the error is on line 98 out but this cannot
always be relied upon. It also doesn't tell you which file is at fault. As
Kevin says, the error messages can be a little cryptic and sometimes do more
harm than good.

Anyway, after looking at your data file I can see the problem. Where you
have:

Code: Select all

aI("text=Hard Drive Recovery;url=/hard_drive.htm;status=Data Recovery UK Ltd Hard Drive Recovery;
Change it to:

Code: Select all

aI("text=Hard Drive Recovery;url=/hard_drive.htm;status=Data Recovery UK Ltd Hard Drive Recovery;");
Note there is only one " in the first aI string.

Hope this helps
Andy
Shelleuk
Advanced
Advanced
Posts: 22
Joined: Thu Feb 26, 2004 12:45 pm
Location: Hackney London UK
Contact:

Post by Shelleuk »

thanks to you both Kevin and Andy - problem is of course fixed.......

Shelle
Michelle Cannon
Post Reply