"Chris Healy" <ca*****@hotmail.com> wrote in message
news:35**************************@posting.google.c om...
I have 2 drop down boxes on my site. I want the selection of the
first one to populate the second box. Any suggestions are
appreciated.
I don't know how au fait you are with Javascript and so on, but here's what
I've done in the past:
Option 1:
=====================
If its a small re-population, and all the possible types can be sent with
the page without affecting speed too much, you can stored a 2-dimensional
array as follows:
MenuChoices(ChosenIndexFromFirstMenu)(0 to n)
And then populate the array when the page is called. This would work such
that each first choice would have an index, and that would allow you to
select an array of options for the second menu.
Option 2
=====================
If the total number of choices is very large, I have used a hidden IFrame in
the page to request the choices for the second menu, and then load them in
when they are returned by the server. This would require a script on the
server to receive the chosen item from the first menu, and then pass back
the relevant contents for the second one.
If you want to know more about one of these option you're welcome to e-mail
me. The first option is also very common on the web, if you do a google
search.
Hope this has helped!