472,353 Members | 1,027 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 2578
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: G4Gun | last post by:
Hi, I have a form in which I have this link :- < href="javascript:submitform(parameters );"> . In the JavaScript function submitform, there is the...
2
by: Ram | last post by:
I have a console application that brings up a dialog if invoked with no command line parameters. If I double click on my application a console...
3
by: Pawe³ | last post by:
I'm desinging a graphical interface and I frequently take advantage of the double click event. Unfortunately in most browsers double clicking also...
6
by: John Bowman | last post by:
Hi All, I must be missing something really obvious, so I'd appreciate someone helping me out. I have a simple Windows form that currently only...
0
by: josephkorn | last post by:
Hi all. I have a problem in my website in trying to prevent a user from double submitting the form. I am calling a subroutine from my page_load...
5
by: Vincent | last post by:
I have a bound listbox control on one of my forms that has an associated afterupdate event. When this event is invoked, I lock the control to...
6
by: Fnord Nase | last post by:
Hi. We're using the dblclick event in some parts of a web app interface, which works okay, but when a user double clicks on a text element, the...
4
by: PJ6 | last post by:
Is there a way to prevent the double-click event on an element from causing IE6 to select everything? Cancelling the event doesn't work. Paul
1
by: thetechgeek | last post by:
Hey all, I've created a pretty nice-looking drop-down menu, and I need to prevent users form highlighting the text in the menu item, because it...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.