Kalai Selvan T.
Joined: Aug 10, 2004
Feild Level Validation using KEYPRESS without Refreshing. For example my database table two feilds.userid,username. i hv a text feild in jsp and enter the userid this userid talk to database and get into the username without refreshing a page. can any one help me.
Joined: Jul 07, 2004
The above code fragment may not be cent percent correct(syntactically), but it will give fair amount of idea..
Kalai Selvan T's solution is a good one, but I don't see what the big deal with refreshing is. If you don't want the page to change just return the same data in the response (after validation) as you did the first time. It seems a lot of trouble to go to for no obvious benefit.
I'm with Jules on this one. Tmsenthil, you do realize that in order to get the server to do something, you must submit a request and the browser will always display the response from that request? Where do plan to display the results from the validation? [ August 11, 2004: Message edited by: Rovas Kram ]
If you had what tmsenthil wanted, you have a thick client. So if you want to stay in the browser world, then you would use an Applet instead of a web page. The Applet could then create a SocketConnection to do RMI type calls.
Web pages are a request/response stateless paradigm.