Click here to Skip to main content
12,296,731 members (63,812 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
Dear all,

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

Solution 1

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 Smile | :)
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

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 | Mobile
Web02 | 2.8.160525.2 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2016
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