Posted by : Deepak Vasudevan Monday, November 06, 2006

Scripting Hell in WebPages and Optimal Solution

One pathetic thing I observed in most of the current webpages particularly login websites is the TextBox focus on pageLoad. But the most pathetic thing is an incomplete implementation of just focussing on the textbox regardless of wherever the user is and whatever the user is doing.

Drawback of the current solution: A regular user would be typing his username and started typing password even before the page completes loading. This 'Focus' script starts only on Body Load completes. Now when he is typing the password, the focus shifts and password appears along with the username.

Solution: Have a KeyUp handler and stop onFocus from bieng called if any username type has already begun.

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

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