You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stanislav <sk...@inet.hr> on 2005/12/19 13:58:52 UTC

submit double click, js and html:submit

I want to prevent user from double submiting data. Searching the internet i found this js code:
<input type="submit" value="Submit" onclick="this.disabled=true;this.form.submit();" />

Because i use html:submit my code is:

<html:submit property="submit" value="Some name" styleClass="Button" style="CURSOR: hand"
onclick="this.disabled=true;this.form.submit();"/>

But when i use this code, after clicking on submit button i get error on page message in IE.

my question is: how can i prevent user from double clicking submit button and still user html:submit
code?

Tnx

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: submit double click, js and html:submit

Posted by Dave Newton <ne...@pingsite.com>.
Stanislav wrote:

>But when i use this code, after clicking on submit button i get error on page message in IE.
>  
>
Uh... what's the error?

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org