Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16758

Re: Javascript for HTML select/option form with lots of entries

From Alfred Molon <alfred_molon@yahoo.com>
Newsgroups comp.lang.javascript
Subject Re: Javascript for HTML select/option form with lots of entries
Date 2012-10-20 21:13 +0200
Message-ID <MPG.2aed16384189b16c98c831@news.supernews.com> (permalink)
References <MPG.2aecb9811caf432998c82f@news.supernews.com> <9dkal9-c2a.ln1@luuk.invalid.lan> <MPG.2aecfff8798abcf498c830@news.supernews.com> <fa4b2c3f-8ff2-4f39-801f-284e5429635e@googlegroups.com>

Show all headers | View raw


In article <fa4b2c3f-8ff2-4f39-801f-284e5429635e@googlegroups.com>, 
Danny says...
> Alfred, can you show us the page or a mock up or screenshot of it?

Sorry, it's not online yet. Essentially it's a picklist with over 600 
customs codes, each with 10 digits (not 400, just had a look again at 
the list).

> By the way, the <datalist> solution works, and yes, you're right in 
> Firefox it shows all that 'have' the number, not just the ones the 
> begin with it, but that seems to be a Firefox implementation, in 
> Opera it shows 'only' the ones that start with it.

Ok... but then the solution is not robust yet, or to put it differently 
the technology is not that far yet. All browsers should behave in the 
same way.

> Anyhow, the first thing that I thought when thinking of a <select> 
> with 400 options is, poor categorizing design, rather than not 
> enough options.  Thus by looking at the page and context, we can see
> that you can just add a bit more design, to make it simpler for the 
> user and also less cluttered :)

That's a valid point you are making. But the implementation is not that 
easy either. 
Suppose the selectable options are the countries of the world. Over 200 
countries and territories - how to categorise that? It's either a one 
step selection or a two step selection by continent or region first and 
by country later. The two step approach is quite complex. Complex coding 
if you do it server-side, and again complex coding (I guess) if you do 
it browser side.
-- 

Alfred Molon
http://www.molon.de - Photos of Asia, Africa and Europe

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Javascript for HTML select/option form with lots of entries Alfred Molon <alfred_molon@yahoo.com> - 2012-10-20 14:37 +0200
  Re: Javascript for HTML select/option form with lots of entries Luuk <luuk@invalid.lan> - 2012-10-20 15:09 +0200
    Re: Javascript for HTML select/option form with lots of entries Alfred Molon <alfred_molon@yahoo.com> - 2012-10-20 19:38 +0200
      Re: Javascript for HTML select/option form with lots of entries Danny <dann90038@gmail.com> - 2012-10-20 11:40 -0700
        Re: Javascript for HTML select/option form with lots of entries Alfred Molon <alfred_molon@yahoo.com> - 2012-10-20 21:13 +0200
      Re: Javascript for HTML select/option form with lots of entries Luuk <luuk@invalid.lan> - 2012-10-20 20:47 +0200
        Re: Javascript for HTML select/option form with lots of entries Luuk <luuk@invalid.lan> - 2012-10-20 22:16 +0200
  Re: Javascript for HTML select/option form with lots of entries Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-24 02:21 +0100

csiph-web