This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript Menu Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Javascript Menu" Watch "Javascript Menu" New topic
Author

Javascript Menu

Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Hi all!
I'm trying to make a javascript menu that don't have a limit in how many children it can have.
I don't want to use layers since i have to make a own scrollbar. ( If the menu expands you can't see the entire menu ).
So i've desided to make the menu in the frameset and then go parent.menu.paint() from the frame.
My biggest problem is that I can't get my adding a child to a parent thing to work. How do you make a linked list in javascript?
I don't want a URL to a complete meny since I like to do it myself but it's difficult to know how to linked the parents and children in a menu.
Please help!
// Mathias


SCJP2 , MCP( 70-229 ) , Preparing For SCWDC
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
I know you do not want a url to a menu, but the HV menu goes into other frames...
http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

but I can not help you since i have no idea what code you are using to have a relationship between the parent and the child.
Eric
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Something like this
I create a Object like this

I would like every menuItem to be a object and to have it's own paint method and so on. The problem is that i don't know how to do the loop and to paint the whole menu ....
by the way... the menu I looking for is something like the one used here.
I developed the site myself but I can't figure out how to make the menu in more than one step.
[ April 15, 2004: Message edited by: Mathias Nilsson ]
 
 
subject: Javascript Menu
 
Threads others viewed
Netbeans gui question, switching from SE to EE, or 1 class to another?
abstract set relations interface
Calling Controller method beforre page render
parent/child form
comfort care
developer file tools