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

HELP Error Expected ';'


Poster: Sandy Rogers
Dated: Monday May 1 2006 - 14:59:58 BST

I'm using v5.746 with Firefox and IE

Firefox is fine - IE appears to be fine but a yellow triangle with an exclamation mark in the bottom right of my IE window informs me (when opened) that there is an error on the page and it is expecting a ';'

I have had a go at debugging and it points towards either the 'mmenudom.js' file or my own menu script (which follows the menudom.js script) in the name of 'menu_data_index.js'. The error is on every single page that I use Milonic even though I use totally different menu scripts for different pages - which strengthens my belief that the error lies in the 'mmenudom.js' script

I'm convinced it's not my menu script - can someone help me please locate where the error is being intiated.

I looked through the Forum and read the 'post' at

http://www.milonic.com/forum/viewtopic.php?p=17850

which didn't help.

My home page is http://www.cumbwestmasons.co.uk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Since starting this 'post' I then went back to my index page (link above) and tried a process of elimination with my coding to see at what point the error would go.

1. It will go if I remove the Milonic coding.
2. It will go when the recommended text:

<a href=http://www.milonic.com/>DHTML JavaScript Menu Courtesy of Milonic.com</a>

is removed.

Solution 1 is of no use whatsoever and solution 2 isn't too helpful because I then get the Milonic link taking over the front end of my Menu.

Can anyone tell me what the problem is?


Poster: Ruth
Dated: Tuesday May 2 2006 - 0:46:52 BST

Hi,

The problem is in your data file. Change this:

Code:
aI("text=<span style='color:red;'>&nbsp;&nbsp;HOME&nbsp;&nbsp;</span>;
url=../main/home.shtml;
status=Back To Home Page;");


To this:

Code:
aI("text=&nbsp;&nbsp;HOME&nbsp;&nbsp;;offcolor=#ff0000;oncolor=#ff0000;
url=../main/home.shtml;
status=Back To Home Page;");


I'm not sure why you have the span in there rather than just using the item properties of
offcolor and oncolor to make the text red, but with the span removed there is no longer an error.

Ruth

Didn't Work


Poster: Sandy Rogers
Dated: Tuesday May 2 2006 - 9:38:05 BST

Hi Ruth,

Thanks for trying :D - I did what you said and even changed other entries that used the span - however, the error is still there. :(

The reason I used span is very simple - 'pig ignorance' and 'brute force'!

The website that you looked at is solely 'bolted' together by me (and no-one else) I do not have any background in coding whatsoever - everything is 'monkey see - monkey do'. For example the 'Daily Snippets' link (midway down on the left of the page) once clicked, also has links to look at previous day's Snippets. These links were not in the original file and were inserted by me by request from one of the members. I noticed today (for the first time - previously they were fine) that they were not showing the right day which meant I had to go back into the cgi code and 'tinker' with it. I have just spent about half an hour working out how to get the cgi code to select the correct day when it overlaps back into the previous month!

Unfortunately, with the Milonic error, all I can say is that it stops once I remove the mandatory reference to Milonic and I don't know why!

Sandy

It now works!!


Poster: Sandy Rogers
Dated: Tuesday May 2 2006 - 9:51:23 BST

Ruth,

Please accept my apologies - I have just gone back to the page using IE and the error has now gone (maybe the cache just didn't refresh correctly).

Many thanks for your help and I promise to remove all the 'spans' in the other data files that I have and change them to 'oncolor' and 'offcolor'. The reason I originally used span was because I was not aware that I could use those other parameters. Can I use the word for a colour or does it have to be a number?

Regards and thanks for responding to my post.

Sandy


Poster: Ruth
Dated: Tuesday May 2 2006 - 15:43:25 BST

Hi,

Yes, you can use color words, but remember many older browsers don't support them. That's why I suggest using the actual code #ff0000.

Below my name are a set of links. The bottom ones list style properties, menu properties and item properties. These go to pages that give you the menu codes you can use in the various areas of the menu: the style section, the menu head area, where the always visible, followscroll etc. are, and in each item.

It will make it a lot easier to design the menu if you use those properties. You also might take a look at some of the other postings in the beginners' forum. They are a pretty quick read.

Ruth


Poster: Sandy Rogers
Dated: Tuesday May 2 2006 - 16:18:11 BST

Hi Ruth,

Many thanks for your assistance - I will take a look at the links as I now need to change the span properties I have for 'font-size' and 'font-weight'

Regards

Sandy