Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lost focus even

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
Hello guys,
when the user press tab or mve to another field, i want the program to be able to check whether the value is in the database or not.how to use the lostfocus even in asp or java?.


Thanks so much.

Nor
 
You can't directly check the database. The only way that you can check a database is by submitting the form. Since onBlur runs on the client-side, you can't really check the DB.

If you want to code a brute force hack, you can store the database in a javascript array, then parse the array each time.

IF you decide to use Java, you can create an applet that will check the database dynamically, but that is way beyond the scope of this message board.

hope this helps.
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top