WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Menu3 bug (100% overload), Andrew Hologram, August 30, 1999
     Re:Menu3 bug (100% overload) , test, February 13, 2001
     Re:Menu3 bug (100% overload), Erik Arvidsson, September 1, 1999

Subject: Re:Menu3 bug (100% overload) From: test Date: February 13, 2001

Why would one do something like this?

From: Andrew Hologram
Sent: August 30, 1999
Subject: Re:Menu3 bug (100% overload)

Menu 3 bug.

If you r using menu3 with big menu (over 1500 menu items) you can get 100% system overload when u open or close root menu.

You need to make this correction.

menu3.js

---------------

function hideAllMenuScriptlets() {
 var objs = document.all.tags("OBJECT");
 
 for (var i=0; i<objs.length; i++) {
  if (objs[i].hideMenu) // Test if the object is a menu
   objs[i].hideMenu();
 }
 
 var roots = document.all.item("opened"); //////// add this line
// var roots = document.all;                      //////// remove this line
 if(roots!=null)     /////////////////////////// add this line
 for (var i=0; i<roots.length; i++) {
  if (roots[i].className == "rootActive")  {
   roots[i].className = "root";
   roots[i].name = "";  /////////////////////////// add this line
   getParent(roots[i], isMenuBar).shownMenu = null;
  }
 }
  
}
----------------

in every place with this assingnment:

  el.className = "rootActive";

add this at next line:
  el.id = "opened";

 

regards,

    Andrew Hologram
     http://the.lov.nu
     http://hologram.virtualave.net





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX