David,
Thank you for your answer, but I'm not using that method. In fact, it's a simple form that works pretty well most of the time.
The problem is some users (don't ask me why) double-click submit buttons. Usually they receive an error message (because the record was already updated), but sometimes happens the problem I described.
One good way to handle this is to include an onClick event handler for your button, and kill the submission if it has been clicked once already:
<script>
var submitted = 0;
function onceOnly() {
return submitted++ == 0;
}
</script>
...
<input type=submit ... onClick='return onceOnly();'>You could also do it in the onSubmit event for your <form>.
-- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
