Hi
My users are not the most brilliant ones
, in stead of clicking a button once the often doubleclick.
What is a good strategy to handle these doubleclick?
Eric
Hi Eric, if the click are Async events, you can set on LockOnAsyncEvents [aeClick := True];
Hi
Thanks
I'm using CGDevTools button and i dont see anything like that , i will ask on their forum.
Eric
Hello,
Here's two ways to handle it with CGDevTools using 'btnSearch' as an example:
- 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();");}
Hi
Looks to work fine!
Great, thanks for your help!
Eric