You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rukka <an...@shaw.ca> on 2006/06/01 07:41:24 UTC
Re: Disable submit button
Thanks for the tip.
rukka
Frank W. Zammetti wrote:
> As previously mentioned, you'll probably want to use the onSubmit
> handler of the form itself. But, whether you do that or not, try
> adding "return true;" to the end of your handler code... I'm not sure
> what every browser will do by default, but for onSubmit at least, you
> need to return true for the form to be submitted to indicate to the
> browser to proceed with the submission (returning false is frequently
> used to do client-side validations and abort the submission if
> something is wrong)... I'd bet that if you don't put any event handler
> code that the browser essentially adds an implicit return true; as the
> event handler... Off the top of my head, I believe the same is true of
> submit buttons... worth a try at least.
>
> Frank
>
> A Amarakoon wrote:
>
>> Thank you for quick reply.. This does not work for me..
>>
>> once you click the submit button it disables button. but does not
>> submit action to
>> the server. May be I am missing something??
>>
>> thanks
>>
>>
>>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org