Click here to Skip to main content
16,022,337 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello friends,

Just check this link...

http://justdial.com/[^]

Here, when we select city, then a special list box like control opens, which shows all the cities alphabetically.
How it is possible?

Tell me some sample or other about it.

thanks.
Posted
Updated 24-Mar-11 3:44am
v2
Comments
Dalek Dave 24-Mar-11 9:45am    
Edited for Grammar, Readability and Link.
Manfred Rudolf Bihy 24-Mar-11 9:50am    
I just visited that site and what I did NOT observe was any alphabetical order at all. Could it be your alphabet is not ordered from A-z?

Also you can use jQuery with many UI plugins or Ajax Control Toolkit where there are many extenders to improove User Interface.
 
Share this answer
 
Poplating a listbox in ASP.NET is easy, see here[^].

What you have in that page, though, is a script to do the same.
Tha is, the text box is populated as per normal, but onmousehover calls a (I think) php script to show the options rather than a standard listbox.

This[^] may help you too.
 
Share this answer
 
when we select city then a special list box like control open ...
which show all the cities alphabetically...

They are just showing up a div on city select event. In the div, the cities are already populated in alphabetical order.

You just need to show/hide a div on the onkeydown event on city textbox. Try!
 
Share this answer
 
Comments
Manfred Rudolf Bihy 24-Mar-11 9:52am    
What alphabetical order?
Sandeep Mewara 24-Mar-11 9:54am    
In a div, a list there is ordered in a table of few 3-4 columns...

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900