Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

how do i call a perl script on onClick event of the button

by turumkhan (Novice)
on Jun 29, 2001 at 19:18 UTC ( #92667=perlquestion: print w/ replies, xml ) Need Help??
turumkhan has asked for the wisdom of the Perl Monks concerning the following question:

I have a button(not of the type submit) on the html form how do i call perl script on the click of that button.
Note: The button is of the type button not submit.

Comment on how do i call a perl script on onClick event of the button
Replies are listed 'Best First'.
Re: how do i call a perl script on onClick event of the button
by Chady (Priest) on Jun 30, 2001 at 12:14 UTC

    not actually Perl related, it's javascript related, and it won't run with JavaScript disabled browsers... your best bet is to use a submit button, other wise, add this to the input tag:

    onClick = "self.location='your_perl_script.pl?with=possible&parameters +=passed';"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-08-30 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (346 votes), past polls