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 ?
Menu disappeared ?
Menu disappeared ?
Michelle Cannon
Re: Menu disappeared ?
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).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....?
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
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:
Change it to:
Note there is only one " in the first aI string.
Hope this helps
Andy
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;
Code: Select all
aI("text=Hard Drive Recovery;url=/hard_drive.htm;status=Data Recovery UK Ltd Hard Drive Recovery;");
Hope this helps
Andy