Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 chilling in the Monastery: (12)
As of 2015-07-08 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls