01-31-2020, 02:36 AM
(This post was last modified: 01-31-2020, 02:37 AM by Alexandre Machado.)
The problem the way I see it is the whole concept. In Windows it is not recommended that you forbid an user to leave a control (yes, I know that people do it nevertheless). The problem is worse when you deal with the browser because the onBlur event in a browser doesn't happen exactly as OnExit on Windows.
Instead of trapping the cursor inside the edit box, it is better to give the user other visual indication that they need to fix something, like filling that edit box.
WebApplication.ShowNotification() method is great for it. You should try it out. It gives the user a highly visible feedback but doesn't interrupt their workflow at all.
Instead of trapping the cursor inside the edit box, it is better to give the user other visual indication that they need to fix something, like filling that edit box.
WebApplication.ShowNotification() method is great for it. You should try it out. It gives the user a highly visible feedback but doesn't interrupt their workflow at all.