User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 363,830 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,111 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1257 | Replies: 3
Reply
Join Date: Feb 2008
Posts: 25
Reputation: brr is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
brr brr is offline Offline
Light Poster

drop down list in text box using ajax

  #1  
May 12th, 2008
how to get names in alphabetical order from the data base in the form of dropdown list when user enters alphabet in the text box... i think this is possible using AJAX programming,
if any body konws pls guide me
thanx,
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 1
Reputation: manhtienpt is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
manhtienpt manhtienpt is offline Offline
Newbie Poster

Re: drop down list in text box using ajax

  #2  
May 12th, 2008
Good but i can't use.....
Last edited by manhtienpt : May 12th, 2008 at 5:04 am.
Reply With Quote  
Join Date: Mar 2007
Location: GA
Posts: 25
Reputation: blufab is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
blufab blufab is offline Offline
Light Poster

Re: drop down list in text box using ajax

  #3  
May 16th, 2008
You would want to use the order by clause in your sql select statement. For instance:
  1. SELECT first_name, last_name
  2. FROM names
  3. ORDER BY last_name ASC;
Last edited by blufab : May 16th, 2008 at 10:41 am.
Reply With Quote  
Join Date: May 2008
Posts: 1
Reputation: camspiers is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
camspiers camspiers is offline Offline
Newbie Poster

Re: drop down list in text box using ajax

  #4  
May 22nd, 2008
Hi,
I'm not sure if this is what you want, but it sounds like it.
I just wrote it yesterday.
nzlocations.sql has a whole bunch of New Zealand Cities in it, helpful data to see the drop down working.
You need php to use this code.
You will need to configure the database connection section of ajax.php.
Once done open the file dropdown.php in browser.
This is rough and insecure (ajax.php) but is only written as an example.
Cheers.
Attached Files
File Type: zip AJAX DropDown.zip (30.9 KB, 17 views)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 12:17 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC