You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by dan61psu <da...@rlwinc.com> on 2002/04/12 19:43:48 UTC

Making One Selection List Dictate Another's Contents

Ok, I know this is probably not able to be done in PERL, but 
maybe...I am dealing with an application that will be used from a 
Pocket PC, meaning Internet Explorer CE, meaning no Dynamic functions 
or DHTML.  Therefore, I am running into alot of dead ends with 
JavaScript.  Maybe you guys might have an answer for me...

I want to have 2 selection lists on my page, one of which is 
the "parent" list and the other is the "child" list.

When a user would select one choice from the first list (parent 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 chosen, Cat and Dog show up in the 
child list.  Or, I choose D from the parent 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 choice from the parent 
list, and then having a child list enabled with the contents of that 
child list specific to what was chosen in the parent 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 Augustine
RLW, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


RE: Making One Selection List Dictate Another's Contents

Posted by Craig Pitches <cp...@rlwinc.com>.
Hi Dan:

Does the IE/CE (PIE - Pocket PC IE) support Java Script at all?

I assume you are saying that it can not support the Java Script that is
typically used to do the things you want on big IE.

Maybe you can do something like:

...
<INPUT TYPE="SUBMIT" NAME="ListClickButton" VALUE="">
...
<SELECT NAME="Selected"
onChange="document.NavigationForm.ListClickButton.click()">
...

The idea is that when something is selected from a list, a SUBMIT button is
clicked. The backend can then take care of the modification of fields in the
form.

Hope this helps.

Craig


hyperbole \hye-PER-buh-lee\ (noun)

: extravagant exaggeration



-----Original Message-----
From: dan61psu [mailto:daugustine@rlwinc.com]
Sent: Friday, April 12, 2002 1:44 PM
To: asp@perl.apache.org
Subject: Making One Selection List Dictate Another's Contents


Ok, I know this is probably not able to be done in PERL, but
maybe...I am dealing with an application that will be used from a
Pocket PC, meaning Internet Explorer CE, meaning no Dynamic functions
or DHTML.  Therefore, I am running into alot of dead ends with
JavaScript.  Maybe you guys might have an answer for me...

I want to have 2 selection lists on my page, one of which is
the "parent" list and the other is the "child" list.

When a user would select one choice from the first list (parent 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 chosen, Cat and Dog show up in the
child list.  Or, I choose D from the parent 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 choice from the parent
list, and then having a child list enabled with the contents of that
child list specific to what was chosen in the parent 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 Augustine
RLW, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org