Search Support

As a web designer, I've used xara dropdown menus on a number of sites and they've looked fine until Firefox 7; now the menus have shifted to the left. Can you tell me a workaround? The menus are fine in other browser. Thx.

  • 9 replies
  • 6 have this problem
  • 181 views
  • Last reply by cebowen

more options

Some of these sites have used xara menus (which are javascript-based) for years without problems. Since I've used Firefox as my default browser since its first release, so I would have recognized the problem right away if it were happening before version 7. Also, I run Firefox on my iMac with Lion; I don't know if the menu-shift problem also is occurring on Windows machine with the new version of the browser. Sure hope you can tell me a quick workaround that I can install on the affected sites.

Chosen solution

But if you insist, try this version:

http://jeffersonscher.com/forumshots/xaramenu_1.js

I haven't tried it in older versions of Firefox.

Read this answer in context 👍 0

All Replies (9)

more options

Try changing your DOCTYPE declaration, since it is incomplete. For example, you could try:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

or, if you're ready for HTML5:


<!DOCTYPE HTML>
more options

I think the problem is in the openMenu() function. It is setting the left position to the menu to 0 rather than the value intended. It's hard to say for sure because the code is difficult to follow...

more options

The menu problem is also occurring on my windows vista computer. To see what has changed in Firefox 7, Developers can see this page:
https://developer.mozilla.org/en/Firefox_7_for_developers
This page points to this page:
https://developer.mozilla.org/En/DOM/Attr#Deprecated_properties_and_methods
Your menu is using parentnode which now seems to allways returns NULL, so I think this may be broken.
(the code is very difficult to read)

more options

Your menu is using parentnode which now seems to allways returns NULL, so I think this may be broken.

Although attribute.parentNode doesn't work, element.parentNode still works. (Otherwise the web would grind to a screeching halt.)

more options

@jscher2000
Thank you for your answer, I can stop worrying
Do you know how to solve this kind of problem?
Make a testcase without the document.write stuff?

more options

Since I browse with NoScript, I personally don't think site menus should be built purely with JavaScript. I would replace them with CSS menus.

more options

Chosen Solution

But if you insist, try this version:

http://jeffersonscher.com/forumshots/xaramenu_1.js

I haven't tried it in older versions of Firefox.

more options

That is really looking great. And very readable too!

more options

Ah, sir, you are a gentleman and a scholar! That works beautifully. We truly appreciate your research! BTW, on the matter of javascript, I've come to generally agree, and increasingly on my new sites I'm moving to CSS for menus. However, the thought of converting all the older sites that have Xara already in place ... well, let's just say this makes for a much nicer weekend in my world. Thank you!