Kwissle

My real-time quiz battle game Kwissle.com

Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Photos

Photoalbum, both old and new.

Twitter

Follow me on Twitter

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 
Web development

Better select boxes for issue tracker

http://www.peterbe.com/plog/better-select-boxes/demo.html

29th of April 2005

If you look at the Add Issue form on the Demo issue tracker you should see the three select boxes (aka. drop downs) and if these become too long they tend to be difficult to use. Here's a potential solution that; I just need to know what you people thing about it's usability.

I use onfocus() and onblur() to change the size attribute of the select input element thus temporarily giving the user a bigger workspace. Please have a play on this demo page and return here after for feedback.

The disadvantage with this, in terms of usability, is that it's unexpected and might not work exactly the same in all browsers. When the drop down expands it also shifts all surrounding content downwards which might make the user feel dizzy when the page "flickers".

Personally I think it's a great feature because drop downs are often difficult to work with if there are many options and the size is small. Another advantage which this "hack" is that it degrades perfectly in browsers that don't support javascript and it works independently of the mouse.



Comment

Peter Bengtsson - 26th April 2005  [«« Reply to this]
Update. Just checked. It works in IE6.
Ian Bicking - 29th April 2005  [«« Reply to this]
Incremental search (with a text box above the select) is another way to handle the same basic issue, I think.
Peter Bengtsson - 29th April 2005   [«« Reply to this]
And what is incremental search?
Ian Bicking - 29th April 2005  [«« Reply to this]
When you start typing, it starts filtering the choices. So in Javascript you'd look for onkeypress or something, and then do a substring search of the contents of the select, and hide any options that didn't match what was in the box.
Sascha Welter - 6th May 2005  [«« Reply to this]
OK, it's unexpected, but one gets the hang of it real fast. It's very logical to see what happens. Nice, I would say.
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.