getting an error message (line 38)?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
KatWalsh
Beginner
Beginner
Posts: 6
Joined: Sun Feb 23, 2003 6:22 am
Contact:

getting an error message (line 38)?

Post by KatWalsh »

Hi,

Many thanks to Kevin3442 for helping me get the 2 menus on my page up and running using 2 menu_array files (plus the info on headers). I also took his advice in removing the menus from table cells (and using 'placemenu'). So thank you. :D

I like the way it looks now, however the status bar in my browser (IE 5) keeps reporting an error on the page now. :x

When I click on it for details it says:

Code: Select all

Line: 38
Char: 186
Error: Expected ')'  (or ']' - can't tell which that is supposed to be)
Code: 0
URL: http://www.katwalsh.com/kat/test/animalindex-test.shtml
I've looked through both array files and do not see any missing closing brackets. I am downloading netscape now to see if it also gets errors, but I know it shows up in IE.

Any help would be much appreciated! The page in question is: http://www.katwalsh.com/kat/test/animalindex-test.shtml

Thank you!
Kat
P.S. the only other changes I've made on the page, besides playing with the menu_array files, has been to add a footer file. Which is why the url is now shtml, but I've used the menu on shtml pages before so I assume that's not the problem.[/code]
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Kat,

This is a vexing problem. The error message in IE is sufficiently vague as to be really irritating but, at the same time, not very helpful at all! NS7 probably won't show an error message at all in its javascript console. NS4, however, will... one of it only remaining, redeeming qualities imho. It seems that the menu doesn't like the use of a single quote in the "Status Text." On line 90 of your menu_array2.js, you have ":: Check to see what's new! ::" You can either rewrite it, to get rid of the contraction ("Check out the new stuff!") or, if you like the apostrophe, try changing it to ":: Check to see what’s new! ::" or "":: Check to see what’s new! ::" (unicode for a right single quote).

Try it... you'll like it! ;)

Kevin
KatWalsh
Beginner
Beginner
Posts: 6
Joined: Sun Feb 23, 2003 6:22 am
Contact:

Thanks!

Post by KatWalsh »

Thanks (again), Kevin!

That did the trick. You've been so helpful! :mrgreen:

Kat
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

You're welcome!

Kevin
Post Reply