Javascript Menu not working in Firefox!

netceo - October 13, 2005 - 13:38

Hi ppl.. there's this strange problem i'm facing. The javascript dropdown menu would not work in firefox, where as it does work fine when used in a normal html page, but within drupal it doesn't work.

Works fine with IE but i need to get it working on firefox too.. Can somebody help me please??

here is the url: www.livepunjab.com

and here is the url where its working perfectly all right with all the browsers

www.livepunjab.com/example.html

Thx in advance guys!

Weirdness...

pobster - October 13, 2005 - 15:31

It seems Firefox is throwing up an error:

createjsDOMenu is not defined

in file: modules/jsdomenu.js line:1145

/*
Check browser compatibility and create the menus.
*/
function initjsDOMenu() { // Public method
  if (document.createElement && document.getElementById) {
    createjsDOMenu();
  }

The weird thing is that I use that module as well and it's fine in both Firefox and IE on my site:

http://www.arcadegeek.co.uk

I guess all you can do is check that everything is installed properly? Make sure all the libs are in the lib directory? Sorry i can't be more help...!

Pobster
PS. The libraries are:

jsdomenu.config.js jsdomenu.inc.js jsdomenu.js jsdomenubar.js

Hey Thanks! Problem Solved...

netceo - October 13, 2005 - 16:03

Thanks buddy.. the problem is solved.. all i had to do was to disable jsdomenu module since i was using a different javascript menu..

I still don't know what was the problem and why is it solved now.. the weirdest part was that it was working in IE, Opera but won't fire in firefox.. your answer just gave me a hint and i went on to disable the menu.. and gotcha.. its working now...

Thanks thanks thanks a lot!!

Sham

Error: initjsDOMenu is not defined

justsaynik - May 20, 2006 - 05:55

Hey i am using Mozilla Firefox. I have installed jsdomenu properly. When i say save configuration (in the admin/setting/jsdomenu) no error is thrown.... but after that when refresh the page it throws up

Error: initjsDOMenu is not defined

I have checked the libraries properly.

Thanks in advance.

-nikhil

 
 

Drupal is a registered trademark of Dries Buytaert.