in reply to Avoiding a second click

A simple what that works is with Javascript and can be found here:
<form onSubmit="if (this.submitted) return false; this.submitted = tru +e; return true"> <input type="submit"> </form>
From: http://developer.irt.org/script/script.htm

The obvious solution might be to make the CGI script faster so users don't have to wait and get impatient and click twice :)

gav^

Replies are listed 'Best First'.
Re: Re: Avoiding a second click
by theorbtwo (Prior) on Jun 12, 2002 at 01:46 UTC

    First, make the form work for non-JS users. Then, add an onSubmit attribute to the form. That way, the form will still work for non-JS users, just without double-submit protection.

    PS: I just noticed that your reply doesn't suggest the oppisite, it just isn't explicit about it. Wish I hadn't already --ed.


    We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book

Re: Re: Avoiding a second click
by MMilani (Sexton) on Jun 12, 2002 at 11:31 UTC
    Dear Gav^, Thank you very much for your kindly reply. I certainly will consider your comments.