Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to insert values in database using javascript like onblur() event of a text box.


plese provide me a small example to understand this..............
Posted
Updated 7-Dec-10 22:24pm
v2

1 solution

Sure. Steps:
1. Attach onblurr event handler to a textbox.
2. In this onblurr event attached method, use traditional XMLHttpRequest.
3. Create a XHR and send the value to server side. Trap the value, insert it in DB and return back the response as successful or failure.
Done.

Try!
 
Share this answer
 
Comments
Sudhir Sharma Jaipur Raj, India 7-Jan-11 7:53am    
sdgsdf sdf gsdf gsfd gsdf gsdfsd sdf gsdfg sd gsdfg sdf gsd
Sudhir Sharma Jaipur Raj, India 7-Jan-11 7:53am    
ds gsdf gsdf gsdfg sdf gdfs gsdf
Sandeep Mewara 7-Jan-11 7:57am    
What is this? Why posting junk comments? Avoid it please!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900