473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

cascademenu.js problem with Mozilla vs IE

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
2 3001
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Felix Natter | last post by:
hi, I am having a problem with colspan's in Mozilla (Netscape). with my understanding of colspan the following table is supposed to look like that: IE6: ...
9
by: Johannes Koch | last post by:
Hi, <http://www.fit.fraunhofer.de/~koch/float_prob/> Is there a way to make Mozilla not to push the red image on top of the menu on the left when the viewport's width is very small? Opera,...
20
by: Arne | last post by:
During testing <div style="overflow:auto;"> in CSS I noticed the mousewheel would work in Mozilla only after I made a <a href="#">some text</a> link and clicked on that, within the div. It...
8
by: Nicolás Lichtmaier | last post by:
Hi, some time ago I've written an article about this issue. It explain some differences in Explorer's and Mozilla's JavaScript/DOM. It has recently changed its URL, This is the new one: ...
6
by: GD | last post by:
I'm using a script that works great on IE, but not on mozilla. the original one worked also on N4, but i'd like it to be funcional with mozilla. this is the orginal script: ...
0
by: autogoor | last post by:
I want to put a java Applet in a jsp page. Here is what I used: <jsp:plugin type="applet" code="mypackage.myApplet" width="450" height="350" > <jsp:params>...</jsp:params>
4
by: aure_bobo | last post by:
Hi all, I'm currently developping a web app, and this one must be compatible with IE and Mozilla Firefox. In this webapp, I would like to launch automatically a anchor link (href) with a...
8
by: Clément | last post by:
Hi! I am currently developping a user interface with Ajax/C#/.net. And I am facing a problem with Mozilla, and Firefox. I use the function innerHTML to load a Web UserControl into a div, this...
20
by: Thorsten Kampe | last post by:
Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.