Accessing form field on a page with JSP code on the SAME page
843840Dec 15 2007 — edited Dec 15 2007Hello people,
This is what i want to do...
I need a profile form for my project wherein the user can update his profile.
it has a username field. I want the username to be changeable at any point of time.
if the user wishes to change his username he simply goes to the Change_Profile page (the one im talking about) and changes it.
But the username should not conflict with the username that any other member might have already chosen
so i put a button on the form right below the field "username" for the user to check for the username's availability.
I want the following things to happen when the user types a username and clicks on this button (which is not a submit button)
1. I want to access my MS SQL 2000 server database and check for all usernames accepted by that form
2. I want to compare each with this username
3. I want to show the result to the user on the very same page+*. that is "Username available" or "Username Taken"
4. I want to show the result using an alert message from javascript+*
help me if u can please.