Drop Down Menu

G

Guest

I have simple form in which I am trying to display multiple drop down box
based on previous selection. Meaning my first drop down box will have 3
selections to pick from and based on selection, second drop down appears.

I've called Microsoft tech support and I was informed that it is not
possible with frontpage 2003.

Thanks,
Deven
 
K

Kevin Spencer

Anything is possible. Since both client-side JavaScript and server-side ASP
are pure text, you can hand-type the code to do this. The real question is,
can YOU do this?

It's not an easy task. Using JavaScript, you have to use an array of arrays
of strings, one for each option in the first drop-down list box. Then you
have to handle the "onchange" event of the first drop-down list box,
clearing the options in the second list box and then adding the elements
from the array in the array of arrays which is at the corresponding index in
the array of arrays to the selectedIndex of the drop-down list box.

The following link is to a page that demonstrates how to do this:

http://www.javascripttoolbox.com/lib/dynamicoptionlist/

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
G

Guest

Thanks Kevin. I am not programmer but know how to read the code. So this
will help me. If I run into the issue, I will let you know.

Thanks again.
Deven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top