Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: CGI and locking

by zakb (Pilgrim)
on May 15, 2002 at 12:05 UTC ( [id://166696]=note: print w/replies, xml ) Need Help??


in reply to CGI and locking

You can do this reasonably reliably client-side with Javascript too...

I've written the below from memory, I have used something similar in the past for exactly this situation...

<script language="javascript"> var submitCount = 0; function doSubmit() { if (submitCount == 0) { submitCount++; document.form1.submit(); } else { alert("Please wait, lengthy query executing..."); } } </script> ... <form name=...> ... <input type="button" onClick="doSubmit();"> </form> ...
Update: andye beat me to it! This approach will only work if your clients have Javascript enabled.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found