Javascript error in Opera

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mfindlay
Super Advanced
Super Advanced
Posts: 38
Joined: Mon Jun 28, 2004 5:00 pm

Javascript error in Opera

Post by mfindlay »

Somewhere between 5.42 and 5.47 a bug was introduced to the milonic that causes Opera to show the following error whenever a menu containing a submenu is displayed:

Code: Select all

Event thread: onload
Error:
name: ReferenceError
message: Statement on line 19: Reference to undefined variable: No such variable 'fixMenu'
Backtrace:
  Line 19 of linked script http://<my server>/iym/menu/mmenudom.js
    fixMenu(_mi[0]);
  In unknown script
    _oifx(15);
  At unknown location
    {event handler trampoline}
(the <my server> is just for purposes of this message)

I am currently using 5.48 but I first noticed this with the 5.47 release. This only occurs in Opera on PC. All other browsers I have (netscape 6+ on PC and Mac, IE on PC and Mac, Safari on Mac) display properly.

Your thoughts? (email me and I will send you a link to the site on my local server)

Thanks!
Mark
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 Mark,

I hope Andy doesn't mind me saying so... and normally I'd let him say it himself, or just upload an update, but I believe he may be out for a couple of days, so just in case this is causing you headaches I'll venture forth.

I believe it's due to a small typo in the code in mmenudom.js. Essentially, you need to change fixMenu(_mi[0]) to _fixMenu(_mi[0]) inside the _oifx() function definition (note the underscore in the call to _fixMenu() ). In v5.48, if you add a _ at column 15210 in the long line of code, that should fix it (nice pun, huh?).

Cheers,

Kevin
mfindlay
Super Advanced
Super Advanced
Posts: 38
Joined: Mon Jun 28, 2004 5:00 pm

Post by mfindlay »

Thanks Kevin,

As long as the fix makes it into the next release of Milonic I'll be content to use the working version until then.

Thanks for your help.

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

Post by kevin3442 »

Wow!... you're either very fast on the email notifications or you were on the forum when I posted. I think that's the fastest turn around I've seen yet.

Cheers,

Kevin
mfindlay
Super Advanced
Super Advanced
Posts: 38
Joined: Mon Jun 28, 2004 5:00 pm

Post by mfindlay »

Fast email notification... :)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Well, I hope he doesn't mind me going even a little further, but Andy is on a long overdue and well-deserved vacation. I'm sure that none of the regulars around here will dispute that statement, as you all know the kind of hours and dedication he's been putting into this system.

He'll be back at it next week, which really isn't that long to wait. Meanwhile, you'll just have to put up with the Team... :D
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Even faster! I'm going to have a beer for you. Might not slow you down any, but it will me!

Cheers,

Kevin
Post Reply