Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

cgi perl popup_menu question

by ghosh123 (Monk)
on Aug 09, 2012 at 09:23 UTC ( #986459=perlquestion: print w/ replies, xml ) Need Help??
ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monk,
I have used a popup_menu in my cgi perl code as below. But I do not know how to do a func

print $cgi->popup_menu(-name => 'rpt', -values => ['a','b'], -onChange => editValue() );

This onChange => editValue() is not working in the above popup_menu. Please let me know how can I make a function call everytime I select an item from the drop-down. The function should be passed that selected value .

Thanks.

Comment on cgi perl popup_menu question
Download Code
Replies are listed 'Best First'.
Re: cgi perl popup_menu question
by Corion (Pope) on Aug 09, 2012 at 09:27 UTC

    Are you aware of how HTTP, HTML and CGI interact?

    You will either need Javascript on the client side, or make the user submit the new parameters by clicking a button.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://986459]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-07-08 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls