P is for Practical | |
PerlMonks |
Re: JScript event handles and CGI.pm dropdown menusby HyperZonk (Friar) |
on Jul 20, 2001 at 23:00 UTC ( [id://98502]=note: print w/replies, xml ) | Need Help?? |
The -onChange parameter only sets up the drop-down to call
a JavaScript method, it doesn't write the method for you.
You will want -onChange=>'mySubmit()' as a
parameter, and have the CGI emit a JavaScript at the
beginning of the document. Assuming that you assign
name="theForm" in the form tag, the JavaScript
might be something like:
In Section
Seekers of Perl Wisdom
|
|