I realize this is way off the servlet track, but...

In a case like this the client side solution is the best idea.  The easiest
thing to do is to use the javascript onClick() handler in the input
type=button tag to call the servlet.  Just keep a static variable in the
onClick() handler function (like var doButtonClick = 1;), conditionally call
the servlet if variable is 1 and set it to zero after the servlet has been
called.

-----Original Message-----
From: Vihung Marathe
To: [EMAIL PROTECTED]
Sent: 8/30/99 9:02 PM
Subject: Re: double click

Chris Pratt wrote:

> I'm not a JavaScript programmer (nor is this a JavaScript Mailing
List)

Right. I agree.

But Jack (the original poster) would not have been able to accomplish
what he
wants to do easily with Servlets, so I gave him a simple client-side
solution -
in the place where he would be looking for a solution to his problem.

> it seems that you could just disable the button once it has been
pushed and
> prevent the double click at the client.

Unfortunately, you can't do that with HTML buttons, which is why the
whole
problem arises.

-- Vihung

________________________________________________________________________
___
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

___________________________________________________________________________
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