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
rukka
----- Original Message -----
From: Jorge Mart�n Cuervo <[EMAIL PROTECTED]>
Date: Wednesday, May 31, 2006 9:19 am
Subject: Re: Disable submit button
<input type="submit" onclick="this.disabled=true"/>
this works well
PD: i've tested in firefox
El mi�, 31 de 05 de 2006 a las 16:36, rukka escribi�:
As a part of solution to multiple reloads and to block the
multiple
submit requests in long running service layer methods, we like to
disable submit button once user hit that once. Does html:submit
button
tag has java scripts associated with it?
If you do have any links on client side fix, I appriciate that.
thanks
rukka
-----------------------------------------------------------------
----
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
;-)
____________________________________
Jorge Martin Cuervo
Analista Programador
Outsourcing Emarketplace
deFacto Powered by Standards
email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384
____________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]