Atozed Forums
Double click - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Double click (/thread-1078.html)



Double click - etwoss - 05-18-2019

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


RE: Double click - Jose Nilton Pace - 05-18-2019

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


RE: Double click - etwoss - 05-19-2019

Hi 


Thanks

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

Eric


RE: Double click - MJS@mjs.us - 05-19-2019

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();");}



RE: Double click - etwoss - 05-19-2019

Hi

Looks to work fine!

Great, thanks for your help!

Eric