Yes, it is a solution. I have used this same solution myself. My point
is that as a developer, I know why the submit button won't work after
clicking stop. I know the page has to be reloaded. However, my belief
(unsupported by anything like real data) is that a significant number of
users will not think to reload the page. I would bet that most users
will blindly click submit several times and then give up thinking that
the page is broken. How many frustrated users does it take before the
reasonable solution turns into an unreasonable solution? If one chooses
to use this solution, one should be aware that there is potential
drawback.

Another solution is to let the user click submit twice and detect the
problem on the server side. For example, you might be familiar with
Fandango.com. They sell movie theatre tickets on-line. Not too long ago
I submitted a purchase and waited several minutes for the server to
respond-- it never did. I finally called customer support and the
support person told me to click stop and resubmit. Being a web developer
myself, I didn't want to do this for fear of the double-submit problem.
But there wasn't much else I could do, so I clicked stop and then
resubmitted. Their application recognized that I had already submitted a
request and gave me the option of continuing the second submission
(maybe I really did want to buy two more tickets) or cancelling the
second submission. Admittedly, this is harder to implement than a few
lines of javascript in the html.

Tom & Sharon Kochanowicz wrote:
>
> Yea, Then hit refresh so it works again. The point is to keep the submit
> button from being pressed twice. The javascript solution below is used very
> commonly on web pages. It maybe suggested that after you hit the submit
> button, then turn off the power switch.  Not trying to be a smart guy here,
> just trying to provide a user of this list a resonable solution. :-)
>
> -----Original Message-----
> Kevin Mukhar wrote:
>
> > Now try this test:
> >
> > - press the form submit button
> > - before the page unloads and the response is displayed press the
> > browser stop button
> > - try to submit the form again

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to