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

Unterminated String Constant and menu not showing


Poster: simongdawson
Dated: Saturday July 31 2004 - 4:33:50 BST

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:
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=simon __at__ 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?


Poster: simongdawson
Dated: Saturday July 31 2004 - 5:20:57 BST

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?


Poster: John
Dated: Saturday July 31 2004 - 20:03:05 BST

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.

Latest version


Poster: simongdawson
Dated: Sunday August 1 2004 - 6:55:15 BST

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?

A lot of this sorted


Poster: simongdawson
Dated: Sunday August 1 2004 - 11:54:29 BST

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)