Monday, November 06, 2006

Scripting Hell in WebPages and Optimal Solution

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.

No comments:

[Imported from Blogdrive]Online Virus Scanners

Online Virus Scanners Virus Scanners are no longer difficult to install, tedious to configure. There are easy to use Online Virus Scanne...