in reply to Execute Perl from Javascript

Here is a very simple example. In a form you can have javascript handlers execute onSubmit as shown. Your form can be no more than a single button.

<html> <head> <script language="JavaScript"> function CheckForm (form) { // do javascript stuff here // return true to submit form // retrun false and form will not submit return true } </script> </head> <body> <form name="form" method="POST" onSubmit="CheckForm" action="/cgi/mail +list.cgi"> <input type="text" name="message" value="Just Another Hacker"> <input type="submit" name="submit" value="Hello Javascript"> </form> </body> </html>

This is the sort of structure you use a lot for client side form validation. If you return false the form is not submitted to the cgi script.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print