WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Is anyone using the WebFXMenuBar object?, hockey player, August 31, 2004
     Re:Is anyone using the WebFXMenuBar object?, Erik Arvidsson, August 31, 2004

Subject: Is anyone using the WebFXMenuBar object? From: hockey player Date: August 31, 2004

Can someone provide some pointers... I donwloaded 4.3 yesterday.

For starters, which include files do we include under JS or LOCAL dirís? Not sure which. Then which objects to instantiate. There seems to be some objects menu,menubar,menubutton and other objects webfxmenu,webfxmenubutton,webfxmenubar (are these latter objects usable, how do we use these?)

To instantiate a menubar, which object do I use MenuBar or WebFXMenuBar ?

When is the DOM Object created and do I have to do this explicitly/manually?

Do I have to write the object to the DOM in any fashion?

How do I write the menubar object to the document, or is this performed automatically?

Can you send me a simple menubar sample? 1 menubar, 3 menuís with 3 menubutton entries each?

<html><head>

<script type="text/javascript" src="WebFX/menu4/local/webfxlayout.js"></script>
<script type="text/javascript" src="WebFX/menu4/js/menu4.js"></script>

</head>

<body>
<script type="text/javascript">
    var mb = new MenuBar();
    var el = mb.create();
    document.body.appendChild(el);
   
 var helpMenu = new WebFXMenu();
 helpMenu.add(new WebFXMenuItem("Help", "javascript:PopUpHelp('<%=request.getContextPath()%>/help/index.htm')", "Help"));
 helpMenu.add(new WebFXMenuSeparator());
 helpMenu.add(new WebFXMenuItem("About", "javascript:PopUpAbout('<%=request.getContextPath()%>/about.jsp')", "About"));

    var menuButton = new MenuButton("File", helpMenu);
    menuButton.mnemonic = 'f';
    mb.add(menuButton);

</body>

</html>




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