Ive noticed, on a few sites, that some text boxes have spinning ‘loading’ images in them when a person finishes entering data.
Eg: On a registration page, when a user enters a nickname. When they are dont, the system checks the DB to see if it is unique.
In this time, the text box displays a spinning loader INSIDE of it, and then a tick or cross image (replacing the loader) if the name is valid or not.
How would I go about implementing that?
You have to strip out all the default style of a textbox and rebuild it yourself with background images and other styles. In addition, you would need to implement AJAX to handle any checks against a database. Not something easy to answer in this format, but I would suggest using FireBug to explore the site you like and see what they have done.
EDIT:
This isn’t exactly what you are looking for, but this might help. I added a bunch of custom styling to a textbox and other than a little JS to show/hide the AJAX spinner, hopefully this will get you part of the way there.
HTML:
CSS:
EDIT:
Attaching image.