473,386 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Drop down with MASSIVE list

I asked last week about passing a popup selection back to the main
window. Now comes another challenge. The drop down list (or other
organization?) has over 36000 entries (it's a list of colleges one
might have attended). I don't think I want to hard code 36000 entries
or if I do, I don't want users to have to scroll through 35000 to get
down to Washington, for example. What would it take to make a "smart"
drown down or scrollable list that would take you to the area of the
letter(s) you type in? Or, should this be organized a different way?
Thanks.

Ken
Jun 30 '08 #1
5 1269
DrKen meinte:
I asked last week about passing a popup selection back to the main
window. Now comes another challenge. The drop down list (or other
organization?) has over 36000 entries (it's a list of colleges one
might have attended). I don't think I want to hard code 36000 entries
or if I do, I don't want users to have to scroll through 35000 to get
down to Washington, for example. What would it take to make a "smart"
drown down or scrollable list that would take you to the area of the
letter(s) you type in? Or, should this be organized a different way?
Thanks.
Zillions of "auto suggest" scripts already exist [1]. I suppose most of
them are of questionable quality.

Gregor

[1] http://www.google.at/search?q=javascript+auto+suggest
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Jun 30 '08 #2
DrKen wrote:
[...] The drop down list (or other organization?) has over 36000 entries
(it's a list of colleges one might have attended). I don't think I want
to hard code 36000 entries or if I do, I don't want users to have to
scroll through 35000 to get down to Washington, for example.
Well, they can press the `W' key in most GUIs, but the Web application
would still be quite slow as all entries must be parsed and rendered.
What would it take to make a "smart" drown down or scrollable list that
would take you to the area of the letter(s) you type in?
- A server-side script to generate only the requested entries,

- knowledge about XMLHttpRequest to have the server-side script respond
with data of the requested entries that can be used to fill the select
element, and

- a `form' element to display only the requested entries as a fallback.
Or, should this be organized a different way?
It might be better to use a simple text input that also accepts common
acronyms for names like UCLA, UCSF, CCCC aso. That text input may also
provide script-based auto-completion for users with sufficient script and
DOM support.
HTH

PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Jun 30 '08 #3
If you seriously have over 32,000 options in your list, you will
encounter another bug before you have to deal with your navigation
issues.

In IE, once you have over 32,763 elements within the body tag, IE will
no longer render any of the box properties of any further elements.
http://forums.microsoft.com/MSDN/Sho...86551&SiteID=1

This means any positioning (left, top) or size (width, height) will be
ignored.

As well, background colors and images will not render either.

Since this bug affects IE6, IE7 and IE8, I would well advise against
generating this select element... not to mention how slow it would be
to load.

As mentioned by others, an auto-complete script would make much more
sense.

Max.
Jul 15 '08 #4
On Jul 15, 1:35*pm, webbugtr...@gmail.com wrote:
If you seriously have over 32,000 options in your list,
Thomas doesn't have that issue, the OP does. Please reply to the post
that your reply relates to, don't just respond to the last post you
see.
--
Rob
Jul 15 '08 #5
In comp.lang.javascript message <384f8353-8a83-4473-8b93-6ac1a3de6578@m3
6g2000hse.googlegroups.com>, Mon, 14 Jul 2008 20:52:14, RobG
<rg***@iinet.net.auposted:
>
Thomas doesn't have that issue, the OP does. Please reply to the post
that your reply relates to, don't just respond to the last post you
see.
The FAQ needs a section specifically aimed at those who post with
Google, especially those with gmail.

Firefox 2.0.0.16 is available.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Jul 16 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
1
by: pmelanso | last post by:
Hello, I have a drop down list which is dynatically loaded from a database and I have a second drop down list that is also dynatically loaded depending on what is selected in the first drop down...
8
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID,...
5
by: ashok893 | last post by:
I'm using two drop down list ina form. I have generated the first drop down list from MySQL database. When i select an option from first drop down list, i have to generate second drop down list...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
4
by: phub11 | last post by:
Hi, I've found a great website which can extract data from a MySQL database and populate chained drop downs. (http://www.noboxmedia.com/20/massive-ajax-countryarea-drop-down-list/) I'd like the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.