Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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?
[Corion]: Hehe - $work is a place where we have lots of (money) accounts, and lots of journals where every transaction is recorded. But our HR system where the accounts of hours worked and vacation days taken are stored, there is no real account of who changed ...
[Corion]: ... that balance, and when. And it seems to me that they somehow really messed up the database since the start of the year and have been frantically adding and subtracting numbers from the totals, but without trace ;)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2018-01-23 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (249 votes). Check out past polls.

    Notices?