Posted by : Deepak Vasudevan Friday, September 26, 2008

Bad Bad onBlur and onFocus Alerts in Webpage Validations

I really get irritated when I see alert popup windows that come up in web pages that I browse and fill particularly following the onBlur of one textbox and onFocus of another control. Having such a flow is kind of irritating and erroneus for the following reasons:

  1. A reckless placement of validations might cause a race condition. Blur of A calling Focus of B. Blur of B might call Focus of A. This might your web browser to freeze and the user would be forced to kill the browser with Task Manager. If the user is not techsavvy, he might only resort rebooting his PC losing his unsaved changed.
  2. Valuable user time is wasted.

I would recommend an elegant solution would be to buffer the validations for the submit button for the webpages or a due button click.

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

- Copyright © Lavanya Deepak -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -