Live data from Hacker News

Select2 - A better way to make select boxes (with jQuery)

github.com

41–50 of 60 posts

Re: Select2 - A better way to make select boxes (with jQuery)

#41
Looking forward to trying the ajax stuff out even though the demo isn't working for me. I've been working with chosen on my current project which works fantastic and the dev is super responsive but I had to make my own control for large, server filtered lists and it looks and feels awful :)

Re: Select2 - A better way to make select boxes (with jQuery)

#43
post #35

Earlier quoted context omitted.

Ah, that'll do it. Listening for a click event should work for both, no?

A mouse is not a finger ;)

True, but they can both generate click events; I've got widgets that listen for clicks and work fine on mobile Safari.

Re: Select2 - A better way to make select boxes (with jQuery)

#46
post #13

It breaks normal usage. Tab to a normal Select, press 'n' 3 times and you get New Hampshire (the 3rd item starting with 'n'). Tab to Select2 press 'n' 3 times and you get nothing.

Pressing a key 'n' times was a crutch for select boxes without a text filter. This is not needed here and doesn't even make sense.

Re: Select2 - A better way to make select boxes (with jQuery)

#47

Maybe it's just me, but I tend to dislike loading 50kb (plus the CSS file) scripts into my applications unless the service is built around something that said script adds a ton of value for. I dunno, is 50kb relevant any longer? Still seems like the 50kb to 100kb range matters when adding in js files. At 5kb to 10kb I don't think much about it.

I thought we were over thinking about file sizes on the disk. You should look at the gzip size.

Re: Select2 - A better way to make select boxes (with jQuery)

#48

Obligatory: what's the difference between Select2 and Chosen? ( http://news.ycombinator.com/item?id=4074501 )

Chosen doesn't support adding tags dynamically. It also looks like select2's api is more friendly and convenient. I will be converting my chosen dialog to select2 as it looks like an improvement overall.

Re: Select2 - A better way to make select boxes (with jQuery)

#49
post #25

Is it only me or anybody else finds the multi select annoying and not at all good UX? It looks good but the means to select many values is inefficient and tiresome.

Have you ever seen tagging done differently? It is the most compact and efficient way to add/delete tags.

Re: Select2 - A better way to make select boxes (with jQuery)

#50
post #12

While it's always good to have people exploring improvements to UI elements, it would be superior to have those improvements show up as patches to WebKit or Firefox or GNOME or whatever else. Native UI elements need the improvements; that's where UI actually belongs. On mobile in particular, there's a couple of problems with the web-page approach to UI. One, it adds yet more stuff to download that "shouldn't" be nece…

Good points but I think you're preaching to the choir. The bottleneck is the W3C which is probably bogged with all sorts of red tape and politics.

This is outside the scope of the W3C, and within the scope of browser vendors. The HTML specification doesn't say how a select element should be rendered, just that it should allow the user to choose from a list of options. That browsers all render select elements roughly the same is convention, not specification, and browser vendors could change if they wanted to.
Post reply on HN