![]() |
double Click
I am wondering what is the surest way to prevent user from double clicking
on a button and in this case it is a deposit button. Sometime the user is impatient after clicking on the button so they would click on it again which would double charge on the credit cards. |
Re: double Click
Hi Grant,
Several alternatives: 1. Handle the second click on the server - Figure out a way to know whether the button has been clicked already, and don't respond to a second. 2. Disable the button after the first click using client-side JavaScript. -- HTH, Kevin Spencer ..Net Developer Microsoft MVP Big things are made up of lots of little things. "Grant" <nospam@nospam.com> wrote in message news:eoCtXiihEHA.2620@TK2MSFTNGP10.phx.gbl... > I am wondering what is the surest way to prevent user from double clicking > on a button and in this case it is a deposit button. Sometime the user is > impatient after clicking on the button so they would click on it again which > would double charge on the credit cards. > > |
Re: double Click
"Kevin Spencer" <kspencer@takempis.com> wrote in
news:OK4BunihEHA.2620@TK2MSFTNGP10.phx.gbl: > Several alternatives: > > 1. Handle the second click on the server - Figure out a way to know > whether the button has been clicked already, and don't respond to a > second. 2. Disable the button after the first click using client-side > JavaScript. 3. Redirect the use to a processing page : ) -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/ |
Re: double Click
I use Sessions to prevent users to do so:
If Session("clicked") = "" Then Session("clicked") = "something" 'Your button_click code goes here End If -- Saber S. http://maghalat.com (Persian) "Grant" <nospam@nospam.com> wrote in message news:eoCtXiihEHA.2620@TK2MSFTNGP10.phx.gbl... >I am wondering what is the surest way to prevent user from double clicking > on a button and in this case it is a deposit button. Sometime the user is > impatient after clicking on the button so they would click on it again > which > would double charge on the credit cards. > > |
| All times are GMT. The time now is 05:32 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.