Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: JScript event handles and CGI.pm dropdown menus

by HyperZonk (Friar)
on Jul 20, 2001 at 23:00 UTC ( [id://98502]=note: print w/replies, xml ) Need Help??


in reply to JScript event handles and CGI.pm dropdown menus

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:
function mySubmit() { document.theForm.submit() }

Replies are listed 'Best First'.
Re: Re: JScript event handles and CGI.pm dropdown menus
by dragonchild (Archbishop) on Jul 20, 2001 at 23:16 UTC
    Thank you! That's exactly what I needed to know to go forward. *bounces happily around the cube*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-19 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found