473,800 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1284
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...@gma il.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.javas cript message <384f8353-8a83-4473-8b93-6ac1a3de6578@m3
6g2000hse.googl egroups.com>, Mon, 14 Jul 2008 20:52:14, RobG
<rg***@iinet.ne t.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.demo n.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
6168
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 that appear when user clicks the drop-down arrow button. Because items in the Drop down list are a little long, user can't see the full thing when they pull down the items from the drop down list.
2
12625
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 select any skill in 1st drop down list then i'll select % of this skill in the 2nd list box , based on the percentage i've selected in the 2nd list box it has to display 2 sets of drop down list boxes at run time one for selecting skill and
1
2503
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 box. This all works fine ... what isn't working is when I selected a different item in the first drop down list I want it to automatically reload the items in the second drop down list. I have a funcation called loadNames that laod the second...
8
7582
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, ProductName, CategoryID, from tblCategoryProducts Where (CategoryID = @CategoryID)
5
18733
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 options by the selected value of first drop down list from MySQL database. For example, the first drop down list contains Animals, Birds... If i select the Animal option, the second drop down list should show like Lion, Tiger.... Both lists should...
4
9299
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 if it works, and if it does not, tell me why it does not work. Thanks.
3
7361
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 document selected (my application uses the BusinessObjects Java Web Services SDK) The 2nd list is dependent on the 1st, while the 3rd list is dependent on the 2nd. In other words, this is what i want my application to do -select a folder from the...
4
1682
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 option of a user "dynamically" uploading their Excel file, extracting certain data, and including their data in the drop downs too. All this without the users data needed to be stored on the server longer than necessary. The only way I can see...
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.