Is the data in the second box dependent upon the answer in the first?
Are they both static lists?
However it sorts out, I think the "right" answer involves using JS at
some level. Why? It saves a roundtrip to redraw your form, which
means your user gets to interact w/ the next step faster.
Let's say you've got two lists, and a selection in list A narrows
down choices in list B. An app I work on knows list A and list b and
the relation between items in both. So, we could use CGI::App and
H::T to populate both JS arrays and send that as part of the form.
Then, a JS function handles the interaction between the select
elements w/o requiring a round-trip to the server.
AJAX would be another way to go (as pointed out by Sean Davis as I
composed this). Either way, JS is a very valuable member of the
toolbox and keeps the user happier, IMO.
Cheers,
Nathan
--
nathan l. walls [EMAIL PROTECTED]
general: http://ismedia.org/
photo stream: http://flickr.com/photos/base10/
On Oct 10, 2006, at 7:43 PM, Robert Hicks wrote:
I would like to populate one combo box with data when the user
chooses an option from another combo box.
I am currently using CA and HT only and would like to keep it that
way if possible.
If that answer is "Javascript" that is okay...I would rather it
not. ; )
Robert
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]