Prevent double click

  • Thread starter Thread starter Anders K. Jacobsen [DK]
  • Start date Start date
A

Anders K. Jacobsen [DK]

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
 
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top