rashley has asked for the wisdom of the Perl Monks concerning the following question:
Here's the important part. The values displayed in the list box are being changed dynamically via JavaScript.
my @rightParams = (-class=>'writeField', -name=>$attr, -id=>$rightbox, -values=>$attrHash->{VALUE}, -size=>$size, -multiple=>'true', -labels=>$labels ); $result .= $cgi->scrolling_list(@rightParams)); $cgi->param($attr, $attrHash->{VALUE}); return $result; }
I then pull the value on submit with this:
my @values = $cgi->param($attr);
All this works, except what's ending up in @values are the those items in the list box that are selected.
I know this is as designed. My question is: Is there a way I can get all the values listed in the list box, whether or not they are selected?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting all values from a CGI list box
by jettero (Monsignor) on Jan 02, 2007 at 18:18 UTC | |
|
Re: Getting all values from a CGI list box
by ferreira (Chaplain) on Jan 02, 2007 at 18:28 UTC | |
by rashley (Scribe) on Jan 02, 2007 at 18:48 UTC | |
by ikegami (Patriarch) on Jan 02, 2007 at 18:54 UTC | |
by pKai (Priest) on Jan 02, 2007 at 19:37 UTC | |
by ikegami (Patriarch) on Jan 02, 2007 at 19:57 UTC | |
by rashley (Scribe) on Jan 02, 2007 at 19:16 UTC | |
by ikegami (Patriarch) on Jan 02, 2007 at 19:49 UTC | |
| |
|
Re: Getting all values from a CGI list box
by ikegami (Patriarch) on Jan 02, 2007 at 18:34 UTC | |
|
Re: Getting all values from a CGI list box
by derby (Abbot) on Jan 02, 2007 at 18:36 UTC | |
|
Re: Getting all values from a CGI list box
by rashley (Scribe) on Jan 03, 2007 at 13:46 UTC |