Live data from Hacker News

Make Better Select Boxes with Chosen

harvesthq.github.com

81–89 of 89 posts

Re: Make Better Select Boxes with Chosen

#82

Earlier quoted context omitted.

I'm curious what you mean by "numeric up/down spinners"...can you clarify?

He probably means newer browsers’ rendering for the HTML5 . Spinners are the little up/down arrows next to number fields that increment/decrement the number. More info: http://www.html5tutorial.info/html5-number.php

[deleted]

Re: Make Better Select Boxes with Chosen

#83

Earlier quoted context omitted.

I'm curious what you mean by "numeric up/down spinners"...can you clarify?

He probably means newer browsers’ rendering for the HTML5 . Spinners are the little up/down arrows next to number fields that increment/decrement the number. More info: http://www.html5tutorial.info/html5-number.php

Yep, that's what I meant. The default implementations leave a lot to be desired. Tiny buttons, for one thing, at least on Safari.

Re: Make Better Select Boxes with Chosen

#84
post #31

Earlier quoted context omitted.

Similar on Android; the widget behaves perfectly, which is ironically a poor experience on mobile. Looks like it would be very nice on a desktop though!

Should these sorts of widgets be the default implementation of those types of controls in desktop browsers? As long as they can be done with the same input information, this sort of input seems like a "user preference" issue.

I can't even scroll the list on iPad not sure if everyone experiencing the same.

Re: Make Better Select Boxes with Chosen

#85
post #84

Earlier quoted context omitted.

Should these sorts of widgets be the default implementation of those types of controls in desktop browsers? As long as they can be done with the same input information, this sort of input seems like a "user preference" issue.

I can't even scroll the list on iPad not sure if everyone experiencing the same.

Yeah, that's why you do it on the client-side. If the widget doesn't work on an iPad then an iPad browser shouldn't default those controls to that widget. A desktop browser could, though Nobody would be worse off, and nobody would be the wiser (except the user).

Re: Make Better Select Boxes with Chosen

#86
post #48

Chosen.js has a great UI, but I found it challenging to do customizations to the library. I wish that the authors of the library had exposed more event hooks or built it with more modularity. Also worthwhile checking out https://github.com/meltingice/ajax-chosen , which adds much-needed Ajax support to Chosen.js.

I've used this before but it took a lot of fiddling to get the desired functionality out of it.

Agreed. I tried for a few days before giving up. Unless you're happy with Chosen's default options you'll spend days trying to customize it.

Re: Make Better Select Boxes with Chosen

#87
post #72

Earlier quoted context omitted.

Thanks! This is considerably smaller than I expected it to be as well (7KiB minified) which is an acceptable size to chuck into our site.

Where did you get a 7KiB version from? If I download Select2, the select2.min.js file has 22KB

probably gziped

edit:ops had this in my tab opened since morning and commented without refreshing

Re: Make Better Select Boxes with Chosen

#89

The project "rationale" has a lot of holes in it. > Instead of forcing your users to scroll through a giant list of items, they can just start typing the name of the item they were looking for. Who's forcing? Modern browsers allow a user to type (in lowercase) text to find in a select element while focused and will scroll to an exact match inside of it. It would require some instructions, but deviations of that behav…

> Modern browsers allow a user to type (in lowercase) text to find in a select element while focused and will scroll to an exact match inside of it.

Additionally they always highlight item that begins with typed letter. Because of that in default combobox i can type only "po" to get Poland, whereas search after typing "po" highlights French Polynesia. I think that difference is worth noting because it may searchbox more or less useful depending on data.

Post reply on HN