By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,730 Members | 1,648 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,730 IT Pros & Developers. It's quick & easy.

cascademenu.js problem with Mozilla vs IE

P: n/a
I'm using the cascademenu.js file from

http://javascript.internet.com/navig...cade-menu.html

It works fine with IE but nothing happens with Mozilla. Specifically,
when I open the Javascript Console with Mozilla, I get "menuBar is not
defined".

Can anybody tell me why?

Alternatively, can anybody suggest an equivalent menu script that does
work with Mozilla and IE?

Thanks!

Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Curtis Rempel <cu****@telus.net> writes:
I'm using the cascademenu.js file from

http://javascript.internet.com/navig...cade-menu.html .... I get "menuBar is not defined". Can anybody tell me why?
They are expecting the element with id="menuBar" to be available as a
global variable of that name. IE is one of the only browsers that makes
it available like that. The correct method of accessing such an element
is with document.getElementById("menuBar").

That means that the script is written specifically to IE. Making it work
in other browsers can be problematic. I recommend finding another.
Alternatively, can anybody suggest an equivalent menu script that does
work with Mozilla and IE?


.... but I'm not familiar with one.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
Lasse Reichstein Nielsen wrote:
Curtis Rempel <cu****@telus.net> writes:

I'm using the cascademenu.js file from

http://javascript.internet.com/navig...cade-menu.html


...
I get "menuBar is not defined".


Can anybody tell me why?

They are expecting the element with id="menuBar" to be available as a
global variable of that name. IE is one of the only browsers that makes
it available like that. The correct method of accessing such an element
is with document.getElementById("menuBar").

That means that the script is written specifically to IE. Making it work
in other browsers can be problematic. I recommend finding another.

Alternatively, can anybody suggest an equivalent menu script that does
work with Mozilla and IE?

... but I'm not familiar with one.

/L


Ah yes, another case of the M$ "embrace and extend" mantra. Sigh.

Thanks for the info.

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.