Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
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 cooling their heels in the Monastery: (10)
As of 2014-12-26 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls