Unterminated String Constant and menu not showing

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

Unterminated String Constant and menu not showing

Post by simongdawson »

I have just moved my domain (http://www.the-limes.com) from one host using apache to another using a Windows Server. I have changed nothing in my Milonic files: I just uploaded the same files in the same directories to the new host. On the old host the two menus on my site were working flawlessly.

Now I have two problems (maybe more?....)

1. I get the error message:

Line 24, Character 16, Unterminated String Constant

2. My bottom menu is not showing. It should be in the lower left corner of the screen. It is produced by menu_data.php:

Code: Select all

with(menuStyle2=new mm_style()){
offcolor="#000000";
offbgcolor="#FFFFF0";
oncolor="#000000";
onbgcolor="#FFFFF0";
fontsize="10pt";
fontstyle="normal";
fontweight="normal";
fontfamily="Tahoma, Helvetica, Verdana";
padding=2;
}

with(milonic=new menuname("BottomMenu")){
left=10;
top=300;
itemwidth=150;
style=menuStyle2;
screenposition="bottom";
alwaysvisible=1;
followscroll=1;
aI("text=<script language='JavaScript'>dT();</script>;align=left;status=The current time and date in Chalfont St. Peter;");
aI("text=<img border=0 src=http://opi.yahoo.com/online?u=simongoodhughdawson&m=g&t=2>;url=mailto:simon@the-limes.com;align=left;status=Click to email Simon;");
aI("text=<? include($DOCUMENT_ROOT."/online/online.php");?><br>;align=left;status=The number of visitors to the-limes.com currently online;");
aI("text=<? include($DOCUMENT_ROOT."/online/today.php");?><br><br>;align=left;status=The number of visitors to the-limes.com today;");
aI("text=<img border=0 name=menupic src=http://www.the-limes.com/images/menu_blank.gif>;align=left;");
}

drawMenus();

If it helps, on the new Windows server g:\websites\the-limes\htdocs is the root.

Can anyone help, please?
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

Post by simongdawson »

I'm also getting the following error message:

Line 9, Character 22, Error 'document.images.menupic' is null or not an object

This may be because the menu isn't displaying?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Hi -

Let's try getting up to level first. You're running 5.26, current is 5.36. Many changes and fixes, as usual.

Let us know how it is after updating.
John
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

Latest version

Post by simongdawson »

OK, I've done that. And to make doubly sure, I deleted the folder on my domain where I keep the scripts, then recreated it empty, and then reuploaded my scripts into it. The problems remain unaltered.

A third problem which has started as a result of my change of web host is that now, every time I go to test the top menu, when I slide the cursor down to the top item of the submenu, 'Simon's Work', its submenu does not expand, and when sliding further down the main submenu 'Simon's Work' remains highlit. By sliding back up to 'Simon's Work' it then behaves perfectly, revealing its submenu and becoming unhighlit when the mouse moves off it. Then by continuing to slide the cursor down the main submenu and back up to 'Simon's Work' it reverts back to the faulty operation. Then by continuing to slide the cursor down the main submenu and back up to 'Simon's Work' it reverts back to the correct operation. etc. etc.

Presumably the predictable alternate correct/incorrect functioning must provide a clue to this particular problem?

Is it a possibility that problems 1 and 2 above are caused by the use of php within the menu items necessitating the menudata file to have a php tag, and the windows server not liking it for some reason?
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

A lot of this sorted

Post by simongdawson »

I've sorted a lot of the problems - it was due to Unix as opposed to Windows paths....

I am re-posting as a fresh item the last (and remaining problem)
Post Reply