Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > How to select f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 1439 of 1478
Post > Topic >>

How to select from a popup_menu without clicking submit?

by mclaesson@[EMAIL PROTECTED] (Marcus Claesson) Jan 7, 2008 at 08:46 AM

Hi!

I wonder if there is any way in Perl CGI that you can select an item in
a popup menu and execute a command WITHOUT having to click a submit
button? For instance, this is what I want to do:

I have a popup_menu with names of several values.
print $cgi->popup_menu(-name=>'list',
                      -id=>'list',
                      -values=>['L1','L2','L3']);

As soon as the user selects a value I want it to be automatically
printed out.

if ($cgi->param('list')) {
   print "Selected value: ".$cgi->param('list');
}

This is a very basic thing if you allow a submit button, but I don't
want to do that. Any ideas?

Thanks in advance!
Marcus
 




 6 Posts in Topic:
How to select from a popup_menu without clicking submit?
mclaesson@[EMAIL PROTECTE  2008-01-07 08:46:47 
Re: How to select from a popup_menu without clicking submit?
foskey@[EMAIL PROTECTED]   2008-01-07 20:12:29 
Re: How to select from a popup_menu without clicking submit?
Justin.Warwick@[EMAIL PRO  2008-01-25 11:27:52 
Re: How to select from a popup_menu without clicking submit?
kanya@[EMAIL PROTECTED]   2008-01-07 12:06:44 
Re: How to select from a popup_menu without clicking submit?
mclaesson@[EMAIL PROTECTE  2008-01-07 11:01:19 
Re: How to select from a popup_menu without clicking submit?
foskey@[EMAIL PROTECTED]   2008-01-08 08:57:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:02:18 CDT 2008.