RE: JavaScript Question: Combo box options depending on selection in another element **UPDATED**

by "Charlton, Mark" <Mark.Charlton(at)sgcna.com>

 Date:  Thu, 12 Oct 2000 09:45:20 -0400
 To:  "'Bone,
Bradley G.'" <bone.bradley(at)mayo.edu>,
"'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org>
  todo: View Thread, Original

Why don't you use the ASP to pull all of the possible answers out of the
database, and use the ASP to write a set of all possible arrays within
javascript functions on the page, then use any switching method for example
the one used on the site given by Cyanide_7 to populate the list box from
the arrays.

http://www.webreference.com/dev/menus/

I don't know enough code to be able to do it, but the principle should work.

Good Luck
Mark


> -----Original Message-----
> From: Bone, Bradley G. [mailto:bone.bradley(at)mayo.edu]
> Sent: Wednesday, October 11, 2000 17:34
> To: 'hwg-languages(at)hwg.org'
> Subject: JavaScript Question: Combo box options depending on selection
> in another element **UPDATED**
> 
> 
> I forgot to mention that the options in both combo boxes need to be
> extracted from a database (I am using Active Server Pages to 
> do this).  The
> first combo box contains the names of all of the managers.  
> The second combo
> box should show ONLY the people who work for the manager that 
> was selected
> in the first combo box.
> 
> I understand how to do this if it weren't for the database 
> angle for the
> second combo box.
> 
> ----------------------------------------
> I have a form with two combo boxes.  I would like to be able 
> to have the
> options in the second combo box change depending on what the 
> selection in
> the first combo box is.  Can anyone help me with this?
> 
> Regards,
> Bradley Bone
> Mayo Clinic Scottsdale
> 

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.