Re:Turn boring HTML checkboxes into iPhone toggle switches
by jcromartie on Wednesday August 05, 2009 @09:02PM
(#744596)
The only reason I'd want these is for a web page to be used on an iPhone. They kill usability for keyboard-focused users.
[ Parent
| on HN ]
Re:Turn boring HTML checkboxes into iPhone toggle switches
by barredo on Wednesday August 05, 2009 @09:12PM
(#744609)
Edit: it has keyboard support indeed. I've just tried and works perfect. Pressing space switches the checkbox state and tab switches between checkboxes.
It's a pretty damn good job.
<s>I bet it's not too dificult to add keyboard support to them</s>
Re:Turn boring HTML checkboxes into iPhone toggle switches
by kingsley_20 on Wednesday August 05, 2009 @11:02PM
(#744705)
Non-obvious keyboard support is still almost worthless.
Re:Turn boring HTML checkboxes into iPhone toggle switches
by jqr on Wednesday August 05, 2009 @11:20PM
(#744726)
I'm sure we'll add a focus highlight or something soon!
Re:Turn boring HTML checkboxes into iPhone toggle switches
by barredo on Wednesday August 05, 2009 @11:33PM
(#744745)
It would be nice to add a yellow/someothercolor border or change the colors to a darker blue...
Re:Turn boring HTML checkboxes into iPhone toggle switches
by robin_reala on Thursday August 06, 2009 @02:26AM
(#744924)
You use Prototype on your iPhone sites? I’ve tried to avoid using libraries on mobile sites as they add a fair chunk of download and processing overhead.
Actually, it’d be nice to see a Webkit specific (or at least modern browser specific) JS library that dumps IE workarounds and fallback DOM selection routines; leaves us with syntactic sugar for QuerySelector and XMLHTTPRequest, and an animation library.