I will enter some value in text1 and when the focus of text1 is lost, I want to check the value in my database table wather it is in database or not.
can anybody suggest me on same. What technique should i use ? I don't have any idea of how to do it... The database table contains more than 100000 entries for that field. I'm Using MVC architecture...
I'd strongly recommend making an Ajax request to the Controller, with the value of Text1. Configure the Controller so that it will pass the Text1 value to the Model, which should then verify whether the Text1 value is in the database and return true or false to the View. [ January 08, 2007: Message edited by: Joel Jorgensen ]
Go is to the fountain.
Joined: Dec 12, 2006
How do we make Ajax request just for text1 ?
I know only about request on click of SUBMIT button.
Originally posted by Jigar Naik: The the link you gave me contains everything about xml parsing and all that... not getting any idea
Yeah Ajax is all about XHR(XMLHttpRequest) thats the only part is available to communicating with server without refreshing your page. check this link for more about Ajax with Steps for building your request(XHR).
I have removed the snippy response and ensuing replies and am closing this topic.
Jigar Naik, as a tip, you will find that being confrontational to those that are trying to help you is not a good recipe for making progress.
Moreover, one of the few rules here at the JavaRanch is "Be nice". I found your posts less than so.
If you would like to engage in a civil discussion of the merits or drawbacks of using formats other than XML with Ajax, please feel free to open a new topic on the subject. But be warned, further unpleasant posts will not be welcomed.
subject: on lost focus of textbox. + JSP + Server side Validation.