Click here to Skip to main content
15,883,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

how to set ajax auto-complete text box set off with java script
Posted
Updated 8-Oct-12 2:40am
v2

 
Share this answer
 
You would need to implement AJAX using the XmlHttpRequest ie XHR object.
Steps.
1. Place a div next to the text box
2. Implement observer for onchange, and call the XHR routine ( implement your-own using raw object or utilize the industry standard JQuery or the YUI java script library)
3. On success of the call, place the result of ajax in innerHtml of the attached div used for dropdown - from Step 1)
4. On the div as well, place a observer for the on-click for selection and later populating the textbox and hiding the div

And ... This should be done :)
 
Share this answer
 

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