IE JavaScript error

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Palooka
Beginner
Beginner
Posts: 7
Joined: Mon Sep 29, 2003 6:54 am

IE JavaScript error

Post by Palooka »

As you can see here, when any of the main menu items (with the exception of "Our Company") is clicked while using IE, the link does not work due to a JavaScript error. It works fine in other browsers that I have tried. Since the plaintext "Our Company" item link works just fine, I suspect it has something to do with the images. I think this is a brand new bug in the Milonic menus; I wasn't experiencing this problem before I upgraded today. The error states, "_gm is null or not an object." Any input would be appreciated.
Palooka
Beginner
Beginner
Posts: 7
Joined: Mon Sep 29, 2003 6:54 am

Post by Palooka »

For those who may be experiencing the same problem, a temporary solution is to simply use the RC 11 version of the mmenudom.js file while continuing to take advantage of improvements in the other RC 13 scripts (particularly the new mmenuns4.js script, which fixes a significant cosmetic issue in Netscape 4).

A question to the Milonic team: would it be possible to provide previous release candidates along with the newest one on the downloads page? I think this would be helpful.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

IE6, win2k, no errors whatsoever.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Palooka
Beginner
Beginner
Posts: 7
Joined: Mon Sep 29, 2003 6:54 am

Post by Palooka »

I, too, am using IE6 on Win2k, and the main menu links generate JS errors without fail.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

IE6/Win2K here as well, and I am seeing the errors. Looking at the code now.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Just a curiosity question while I'm looking. Since you're trying to get the imaged items to do the same thing as you are now doing with Our Company (it appears), why not do them all with text rather than images?
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 »

My two cents...

Using IE6/Win2k, I get the error from any grapical, as opposed to textual, menu item. You'll notice that the same error occurs in the "All Images" sample, both on the Milonic site and in the current downloadable version, suggesting that it's not something in Palooka's code. As Palooka mentioned, replacing RC13's mmenudom.js with RC11's mmenudom.js makes the error go away (don't know about RC12, 'cause I missed that one). Although I wouldn't suggest that as a solution, it does present a clue. Perhaps a bug introduced in RC12 or 13? Figuring out where the bug came in (12 or 13) then comparing that file to RC11's file may yield the answer. I have a utility somewhere that does that... highlighting differences... now if I can only remember what the thing's called and where I put it!

Also, I think it would be a nice touch to make previous releases available -- perhaps not all, but maybe just the more recent ones -- for just such an occasion.

Go to bed John. I see you're currently logged in and it's way past your bed time! ;)

Kevin
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

kevin3442 wrote:Go to bed John. I see you're currently logged in and it's way past your bed time! ;)
Look who's talking :!:

However, I think you hit it right on. Andy will jump on it (he should be getting up about now), if he hasn't already.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Can somebody tell me what these errors are.

I've tried it in lots of browsers and all seems fine.

Screenshots are good too

Cheers
Andy
User avatar
4viggo
Super Advanced
Super Advanced
Posts: 56
Joined: Wed Jun 12, 2002 12:03 pm
Location: Norway

Post by 4viggo »

Whenever you click on the "Home" button on your menu sample 18 it shows the following error:

Line: 17
Char: 2680
Error: '_gm' is null or not an object
Code:0
Url: http://milonic.com/menusample.php?sampleid=18

regards
4viggo
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

RC14 now contains a fix.

Expect a few more updated later today.

Cheers
Andy
Palooka
Beginner
Beginner
Posts: 7
Joined: Mon Sep 29, 2003 6:54 am

Post by Palooka »

Thanks for solving the problem so expeditiously, Andy.
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Different javascript error

Post by bonewalker »

Here's a new wrinkle: I get a javascript error that says 'Class not defined', and that is all.

I am using RC6, running on IE 6.0 in Win98SE.

I hope to upgrade to the latest RC soon, but I still cannot download anything but the trial version which contains the Milonic link.

This error I mentioned so far has only occured on one users machine, and I cannot reproduce it anywhere else, so it must be something specific to this machine, but I thought I would throw it out here anyway.

Thanks,

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

Post by kevin3442 »

Bone,

Does your page use any Java applets? If so, are you sure it's a Javascript error and not a Java error? Given the circumstances you described (machine specific) and the error message itself, I couldn't help but wonder.

Kevin
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Post by bonewalker »

Hi Kevin,

Nope, no Java applets. In fact, nothing on the page but the menu and about a paragraph's worth of text.

That's what is odd about this. I didn't think Javascript supported Classes, but I could be wrong.

Bonewalker
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

It's a problem with one of the DLL's on that specific machine.

A re-install of the browser will fix it but I would like to catch this error if possible. Do you have a line number of where the error is.

Cheers
Andy
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Post by bonewalker »

Yeah, I feel really useful now!

I will snag the full error and forward it on. Might even get you a screenshot.

Thanks,

Bonewalker
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

This problem is to do with disabled ActiveX.

We've now caught the error and RC15 due out later this week will fix it.

Cheers
Andy
User avatar
bonewalker
Super Advanced
Super Advanced
Posts: 40
Joined: Tue Aug 19, 2003 10:35 pm

Post by bonewalker »

Excellent Andy!

I hope the error message I sent helped out.

However, I have to tell you that I still cannot download the latest version without the trial Milonic link.

I have emailed someone named Marty about this and not received a reply yet.

Can you help?

Thanks,

Bonewalker
Baker University
License number: 189473
Post Reply