You can do it better with DHTML just hide the layer with the button for  a
while using DIV and seTimeout().
AL
At 07.58 04/04/00 -0600, you wrote:
>Simon Christian wrote:
> >
> > You could approach the problem from the client side by using Javascript
> to only
> > allow the page to be submitted once. e.g. within the form tag call a
> method to
> > check if the form has already been submitted.
> >
> >     <script language="javascript">
> >     var sent = false;
> >
> >     function checkOkToSend() {
> >         if(sent) return false;
> >         sent = true;
> >         return true;
> >     }
> >     </script>
>
>I've used that approach and it works, with at least one potential drawback. If
>the user for some reason (perhaps he sees a mistake on the page) clicks
>the stop
>button, then tries to resubmit, the second submit is blocked by the
>javascript,
>but the user has no idea why subsequent submits do not work. So if you use
>this
>technique, your page must also warn the user to reload the page if they
>need to
>resubmit.
>
>K Mukhar
>
>___________________________________________________________________________
>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