• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type Ahead in Drop Down

 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am developing an application where I need to Search a value from a drop down list by implementing a type ahead. I would wannt to implement a type-ahead similar to the type-ahead we use in the address bar of our IE or firefox browser. Do I need to use AJAX ? Please let me know.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax will let you go back to the server to get more information. But I'm not sure that's going to help you. I'm not exactly sure what you mean by "type ahead" within the context of drop-down select elements.
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I need client side scripting. So i guess I wouldn't be using AJAX.

By type ahead I mean an implementation as we see in our MS outlook where we have to search for a contact. For eg. I have a drop down list in my drop down List (from <input type="dropdown"/> and if my list is 100 items long, I dont want to scroll down the entire list to find a name. I would prefer to type the name in the Drop down menu(similar to the way we type in our browser and get a auto-type ahead) and that would pull up the name from the list.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have to hit the server to get the values then you need to use Ajax. Plenty of script out there, search the net or get my book.

If you already have all of the values then there is no need for Ajax you can look at http://www.codingforums.com/showthread.php?t=9865 where there is a long discussion on it.

Eric
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

I checked this link and I think its close to what I am looking for.

http://javascript.internet.com/forms/list-chooser.html

That should solve the problem.

Thanks a heap.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic