Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Double click
#1
Hi

My users are not the most brilliant ones Smile , in stead of clicking a button once the often doubleclick.

What is a good strategy to handle these doubleclick?


Eric
Reply
#2
Hi Eric, if the click are Async events, you can set on LockOnAsyncEvents [aeClick := True];
Reply
#3
Hi 


Thanks

I'm using CGDevTools button and i dont see anything like that , i will ask on their forum.

Eric
Reply
#4
Hello,



Here's two ways to handle it with CGDevTools using 'btnSearch' as an example:

  1. To disable / enable the button - OnCreate{   btnSearch->JQEvents->OnClick->Script =  "function (e) { $(<#btnSearch#>).button({ disabled: true }); }";}btnSearchJQButtonOptionsClick{  ...process  btnSearch->JQButtonOptions->Disabled = false;}To lock / unlock the whole form - OnCreate{  btnSearch->JQEvents->OnClick->Script =  "function (e) { ActivateLock(); }";}btnSearchJQButtonOptionsClick{  ...process  WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("ReleaseLock();");}
Reply
#5
Hi

Looks to work fine!

Great, thanks for your help!

Eric
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)