in reply to Re^3: creating CGI::scrolling_list ... can this be shortened?
in thread creating CGI::scrolling_list ... can this be shortened?
well, in order to have the labels for the scrolling_llist different than the values, per the CGI documentation, an array of values and a hash of value -> label mappings *is* needed.
i'm creating:
now i realize that hashes are nothing more than special arrays, *but* in order to create the sample above, CGI::scrolling_list requires an array of values *and* the (optional) hash of label mappings.<select> <option value='1'>Foo </option> <option value='3'>Baz </option> </select>
i haven't tried to let perl massage the resulting array into a hash, *but* it's also an arrayref of hashrefs (as i've written the fetch), and CGI::scrolling_list doesn't understand that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: creating CGI::scrolling_list ... can this be shortened?
by fmerges (Chaplain) on Jul 26, 2005 at 14:20 UTC |