A JavaScript For Creating Dynamic HTML Menus?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tony_Madison
Posted On:   Thursday, January 24, 2002 03:54 AM

I would like to write a Javascript which allows me to dynamically populate the contents of a simple HTML drop-down menu when certain elements of another drop-down menu are selected, without having to reload the page. At the moment, the user has to select an element of the first menu, press a 'submit' button, which then reloads the page and causes the second menu to be populated accordingly. However, I would like the second menu's contents to be update as soon as the user selectes an element of the first menu. To illustrate what I mean, please take a look at the Javascript menu system on the following page : http://www.easyjet.com/en/ When you click on a departure airport, the contents of the arrival airport menu a   More>>

I would like to write a Javascript which allows me to dynamically populate the contents of a simple HTML drop-down menu when certain elements of another drop-down menu are selected, without having to reload the page. At the moment, the user has to select an element of the first menu, press a 'submit' button, which then reloads the page and causes the second menu to be populated accordingly.

However, I would like the second menu's contents to be update as soon as the user selectes an element of the first menu.

To illustrate what I mean, please take a look at the Javascript menu system on the following page :

http://www.easyjet.com/en/

When you click on a departure airport, the contents of the arrival airport menu are instantly populated.

Many many thanks!!!

   <<Less

Re: A JavaScript For Creating Dynamic HTML Menus?

Posted By:   Anonymous  
Posted On:   Monday, January 28, 2002 02:46 PM

I know this works in IE, but I'm not sure how well it will fly in other browsers..






setOpts() gets called onchange by the first drop-down menu.
About | Sitemap | Contact