Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:43
Using Classes for menus
Poster: damurphy
Dated: Thursday April 4 2002 - 14:35:42 BST
There is a serious problem with the global javascript variables interacting with the user's javascript variables. In fact, if your menus are not loaded first on a page, all sorts of problems occur--the menus do not display, the menus show up in the wrong location.
Please consider using prototypes or classes to program to insulate menu variables from other javascript variables as
function _MenuObject
{
this.menus = 0;
this.menucount = 0;
}
Also following a standard convention for naming functions and variables to allow your users to avoid conflicts would be helpful as
MDM_Menucount = 1;
God bless you!
Dieter