Click here to Skip to main content
13,086,264 members (66,630 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Dear all,

how to set ajax auto-complete text box set off with java script
Posted 8-Oct-12 2:12am
Updated 8-Oct-12 2:40am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You would need to implement AJAX using the XmlHttpRequest ie XHR object.
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 :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100