[Javascript] Making One Selection List Dictate Another's Contents

Daniel G. Augustine daugustine at rlwinc.com
Fri Apr 12 12:23:55 CDT 2002


Hey all,

i am still relatively new to javascripting.  There has to be a way to do
what i want, i just cant figure it out, so im truing to you guys...I want to
have 2 selection lists on my page, one of which is the "father" list and the
other is the "child" list.

When a user would select one choice from the first list (father list) the
script would populate the options for the child list based on the first
lists's choice.  For example, I have A, B, C, and D in the first list and
the second list is disabled (i have the code for that all taken care of)
until one of those A, B, C or D choices is made.  Lets say B is chosen.
After B is chose, Cat and Dog show up in the child list.  Or, I choose D
from the father list and then Snake and Rabbit show up in the "child" list.

Note:  This is just an example of how to do this...i mainly just want to
have control over making the user select a choce form the father list, and
then haveing a child list enabled with the contents of that child list
specific to what was chosen in the father list.  Anyway to do this would be
fine...

ALSO...VERY IMPORTANT...this application is being developed for use with
Pocket PC's, which means Internet Explorer CE, which in turn means, NO
Dynamic functions or DHTML supported...i wish i could use it, but i cant!
any way to do this???


Thanks in advance for the help.

Dan

____________________________________________________________________________
_

Daniel G. Augustine
Intern
RLW, Inc.
(814) 867-5122
(717)-314-6052 (mobile)

Pennsylvania State University
Undergraduate Student
School of Information Sciences and Technology
http://ist.psu.edu




More information about the Javascript mailing list