Live data from Hacker News

Turn boring HTML checkboxes into iPhone toggle switches

jqr.github.com

11–20 of 24 posts

Re: Turn boring HTML checkboxes into iPhone toggle switches

#11
post #10

Earlier quoted context omitted.

Non-obvious keyboard support is still almost worthless.

I'm sure we'll add a focus highlight or something soon!

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

#12
This is a classic case of why you don't necessarily make a UI element look like something real. Every time I used the toggle switches, I just wanted to "swish" them with the mouse (a completely awkward gesture), even though they technically respond to simple on/off clicks like checkboxes do. So all they've done is make the "easy" behavior unintuitive, while almost encouraging an awkward gesture.

Re: Turn boring HTML checkboxes into iPhone toggle switches

#14

This is a classic case of why you don't necessarily make a UI element look like something real. Every time I used the toggle switches, I just wanted to "swish" them with the mouse (a completely awkward gesture), even though they technically respond to simple on/off clicks like checkboxes do. So all they've done is make the "easy" behavior unintuitive, while almost encouraging an awkward gesture.

You can actually swish them on an iPhone (the real iPhone ones, not the ones in this kit.)

Re: Turn boring HTML checkboxes into iPhone toggle switches

#15

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.

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.

Re: Turn boring HTML checkboxes into iPhone toggle switches

#17
post #14

This is a classic case of why you don't necessarily make a UI element look like something real. Every time I used the toggle switches, I just wanted to "swish" them with the mouse (a completely awkward gesture), even though they technically respond to simple on/off clicks like checkboxes do. So all they've done is make the "easy" behavior unintuitive, while almost encouraging an awkward gesture.

You can actually swish them on an iPhone (the real iPhone ones, not the ones in this kit.)

They irritate me a lot on the iphone as well - I really hope this metaphore goes away, checkbox type thing is just fine...

Re: Turn boring HTML checkboxes into iPhone toggle switches

#18

This is a classic case of why you don't necessarily make a UI element look like something real. Every time I used the toggle switches, I just wanted to "swish" them with the mouse (a completely awkward gesture), even though they technically respond to simple on/off clicks like checkboxes do. So all they've done is make the "easy" behavior unintuitive, while almost encouraging an awkward gesture.

I agree that we shouldn't automatically copy and past UI elements from one platform to every other, unless they present real usability benefits to those other platforms.

But one benefit I can see is that these switches increase the target area, which I've always found to be somewhat small with checkboxes and radio buttons...

Re: Turn boring HTML checkboxes into iPhone toggle switches

#19
post #18

This is a classic case of why you don't necessarily make a UI element look like something real. Every time I used the toggle switches, I just wanted to "swish" them with the mouse (a completely awkward gesture), even though they technically respond to simple on/off clicks like checkboxes do. So all they've done is make the "easy" behavior unintuitive, while almost encouraging an awkward gesture.

I agree that we shouldn't automatically copy and past UI elements from one platform to every other, unless they present real usability benefits to those other platforms. But one benefit I can see is that these switches increase the target area, which I've always found to be somewhat small with checkboxes and radio buttons...

The text label beside the radio button is clickable too, if the page author has used the tag correctly.

Re: Turn boring HTML checkboxes into iPhone toggle switches

#20
post #19
post #18

Earlier quoted context omitted.

I agree that we shouldn't automatically copy and past UI elements from one platform to every other, unless they present real usability benefits to those other platforms. But one benefit I can see is that these switches increase the target area, which I've always found to be somewhat small with checkboxes and radio buttons...

The text label beside the radio button is clickable too, if the page author has used the tag correctly.

the entire control can be clicked to toggle, and yes it's composed of two overlapping labels!
Post reply on HN