470,591 Members | 2,085 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Prevent double click

Hi im building a administraive application (primary) CRUD.

But how do i prevent users not to double click on eg a insert button? I
would be great the have uniform way to deal with this since I have a LOT of
buttons. So adding javascript manually to each page does not sound
compeling. I wouldnt mind if the soultion was serverside since it after all
is rare they do double click.

Thanks in regards
Anders
Nov 19 '05 #1
3 2515
"Anders K. Jacobsen [DK]" <no**@at.all> wrote in
news:#3**************@TK2MSFTNGP15.phx.gbl:
But how do i prevent users not to double click on eg a insert button?
I would be great the have uniform way to deal with this since I have a
LOT of buttons. So adding javascript manually to each page does not
sound compeling. I wouldnt mind if the soultion was serverside since
it after all is rare they do double click.


You can inherit the button class and create your own custom "click once"
button.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
My personal preference is to display a wait message as soon as the page is
naivgated away (onbeforeunload if I remember). This can be done
automatically from your page base class (if you have one).

Patrice

--

"Anders K. Jacobsen [DK]" <no**@at.all> a écrit dans le message de
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi im building a administraive application (primary) CRUD.

But how do i prevent users not to double click on eg a insert button? I
would be great the have uniform way to deal with this since I have a LOT of buttons. So adding javascript manually to each page does not sound
compeling. I wouldnt mind if the soultion was serverside since it after all is rare they do double click.

Thanks in regards
Anders

Nov 19 '05 #3
You can use this free control to make sure a user doesn't accidentally
submit a form more than once:
http://www.metabuilders.com/tools/OneClick.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Anders K. Jacobsen [DK]" <no**@at.all> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi im building a administraive application (primary) CRUD.

But how do i prevent users not to double click on eg a insert button? I
would be great the have uniform way to deal with this since I have a LOT
of buttons. So adding javascript manually to each page does not sound
compeling. I wouldnt mind if the soultion was serverside since it after
all is rare they do double click.

Thanks in regards
Anders

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by John Bowman | last post: by
5 posts views Thread by Vincent | last post: by
6 posts views Thread by Fnord Nase | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.