• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Type Ahead in Drop Down

 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic