Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
Dear all,
 
how to set ajax auto-complete text box set off with java script
Posted 8 Oct '12 - 2:12
Edited 8 Oct '12 - 2:40


2 solutions

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  
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 464
1 Mahesh Bailwal 373
2 Maciej Los 215
3 CPallini 175
4 Rohan Leuva 175
0 Sergey Alexandrovich Kryukov 9,402
1 OriginalGriff 7,204
2 CPallini 3,933
3 Rohan Leuva 3,211
4 Maciej Los 2,743


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid