Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: CGI.pm and dynamic dropdown menus

by Your Mother (Bishop)
on Aug 15, 2009 at 20:43 UTC ( #788928=note: print w/replies, xml ) Need Help??


in reply to CGI.pm and dynamic dropdown menus

This is really a JavaScript question. You can indeed write the dropdowns in Perl and might want to depending on what you're doing but to dynamically update (reveal, hide, switch lists) the dropdowns you have to use JS.

I highly recommend jQuery for this. It's ideal for this sort of DOM manipulation. You could write all the fields to the page in your CGI with Perl and hide them with CSS, then use JS to reveal/switch them as you need.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://788928]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2018-05-21 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?