News for hackers. Stuff that matters.
Re:Turn your checkboxes into iPhone-style binary switches by m_eiman on Tuesday January 26, 2010 @02:45PM (#1078589)
Am I the only one who has to think twice every time I see one of those controls; "does the text mean that it's currently off, or does it mean that sliding it over there will turn it off"?
Re:Turn your checkboxes into iPhone-style binary switches by faramarz on Tuesday January 26, 2010 @02:57PM (#1078630)
Really? If anything, over the years the use of computers and standard UI's have trained us you to associate light-shades to OFF/inactive and bright-contrast or colour with active/ON.
Re:Turn your checkboxes into iPhone-style binary switches by ajross on Tuesday January 26, 2010 @04:14PM (#1078884)
Not as much as they've trained us to associate check boxes with a mark in them with "enabled/on/yes" and empty boxes with "disabled/off/no".

I agree with the grandparent post. This feature trades usability for eye candy. Bad idea.

Re:Turn your checkboxes into iPhone-style binary switches by there on Tuesday January 26, 2010 @05:09PM (#1079046)
but in this case you don't see the bright color and "on" part until you slide it, and having to do that just to figure it out is not very intuitive.
Re:Turn your checkboxes into iPhone-style binary switches by panic on Tuesday January 26, 2010 @02:56PM (#1078625)
This makes sense if there is a button labeled "off", but in this case the middle of the slider is unlabeled. The part you interact with (at least if the slider were a physical object) is different from the part that displays the state, which sidesteps this ambiguity in a pretty clever way.
Re:Turn your checkboxes into iPhone-style binary switches by m_eiman on Tuesday January 26, 2010 @03:49PM (#1078807)
What I see is a button with a grayed out text next to it that says "Off" (or even worse, just "O"). Maybe I'm just damaged from having tried to understand more or less broken GUIs the last twenty years and overthink it :P

Another thing that annoys me with them is that the buttony part doesn't really stand out as a button, I think part of my problem is that I actually interpret the button as the background - and then what I see is an empty space with a button labeled "Off" next to it.

Re:Turn your checkboxes into iPhone-style binary switches by lanstein on Tuesday January 26, 2010 @05:47PM (#1079139)
Nope, and the worst one I remember offhand is the mute button on the Treo. Nothing worse than making a comment, looking at the phone, and not being able to tell if you were muted or not.
Re:Turn your checkboxes into iPhone-style binary switches by pierrefar on Tuesday January 26, 2010 @02:46PM (#1078591)
It's not accessible. In my tests, I attached a label to the checkbox. Clicking the label text doesn't trigger a switch.
Re:Turn your checkboxes into iPhone-style binary switches by ivankirigin on Tuesday January 26, 2010 @03:02PM (#1078651)
Tests show standard UI inputs are understood the best. Just use the checkbox for your website.
Re:Turn your checkboxes into iPhone-style binary switches by daleharvey on Tuesday January 26, 2010 @03:05PM (#1078662)
I think most people would appreciate a reference the tests mentioned (I would at least)
Re:Turn your checkboxes into iPhone-style binary switches by mey on Tuesday January 26, 2010 @03:50PM (#1078812)
I have no idea what parent's reference test are, but posit that things that are familiar are easier to use.

Now considering how widespread the iPhone/iPod are in use, I doubt many people would have trouble putting 2 and 2 together.

Re:Turn your checkboxes into iPhone-style binary switches by ivankirigin on Tuesday January 26, 2010 @03:52PM (#1078822)
The iphone isn't nearly as common as, say, any of the top 3 browsers.
Re:Turn your checkboxes into iPhone-style binary switches by daleharvey on Tuesday January 26, 2010 @05:12PM (#1079048)
I think thats what the parent was suggesting, but the same logic gets you nothing new, ever.
Re:Turn your checkboxes into iPhone-style binary switches by ivankirigin on Tuesday January 26, 2010 @05:51PM (#1079146)
The parent said: - well known things are good - the iphone is well known

Relative to other technologies, it is not.

Also, changing the platform might require interface changes that are clearer and easier on that platform. I'm not saying iphone checkboxes are bad. I love them. But they stink when they aren't on the iphone. They even stink when they are on the iphone but in a web app.

The issue here is whether something from a new platform should be used on an old platform. No, if the tools aren't standard.

Note that new browsers and browser versions render checkboxes differently, which yields incremental changes over time.

Re:Turn your checkboxes into iPhone-style binary switches by ivankirigin on Tuesday January 26, 2010 @03:52PM (#1078820)
Yeah, I don't have one handy. I've heard this about a dozen times though. It is a commonly accepted best practice at places I have worked.

But on a meta level, doesn't this feature strike you as a bit cargo-cult?

Re:Turn your checkboxes into iPhone-style binary switches by staunch on Tuesday January 26, 2010 @04:09PM (#1078869)
You're blindly following advice you've "heard", while calling this cargo-cult...
Re:Turn your checkboxes into iPhone-style binary switches by ivankirigin on Wednesday January 27, 2010 @02:18PM (#1081299)
Cargo cult is when you copy what something looks like, without it working like it should. Iphone-looking checkboxes not on an iphone fit that really well.

I apologize for not having a link to the words that have come out of the mouth of every designer I've worked with.

Re:Turn your checkboxes into iPhone-style binary switches by irrelative on Tuesday January 26, 2010 @08:40PM (#1079514)
Additionally, the iPhone checkboxes were created because clicking checkboxes is hard to do with the iPhone interface, not because they're better than plain old checkboxes.

Just because Apple does it, doesn't mean it's the best way to do things all the time.

Re:Turn your checkboxes into iPhone-style binary switches by nakajima on Tuesday January 26, 2010 @02:32PM (#1078545)
Ironically, it doesn't work on an iPhone.
Re:Turn your checkboxes into iPhone-style binary switches by Nwallins on Tuesday January 26, 2010 @02:45PM (#1078588)
Score one for Android, then!

However, I find it only works reliably with sliding, not touch-clicking. Which is interesting, given that clicking seems to be sufficient in Firefox.

Re:Turn your checkboxes into iPhone-style binary switches by Tichy on Tuesday January 26, 2010 @05:59PM (#1079163)
Bummer - I thought it would be interesting for iPhone web apps.
Re:Turn your checkboxes into iPhone-style binary switches by jcromartie on Tuesday January 26, 2010 @04:21PM (#1078902)
Actually, don't. I can't tab to them and hit space to select them. They take up more room. They break labels. They are ambiguous.
Re:Turn your checkboxes into iPhone-style binary switches by aw3c2 on Tuesday January 26, 2010 @05:36PM (#1079111)
And it does not seem to work if Javascript is disabled.
Re:Turn your checkboxes into iPhone-style binary switches by chunkyslink on Tuesday January 26, 2010 @03:16PM (#1078697)
If you are interested in a jQuery style plugin see our tutorial we did a few months back which does the same thing

http://labs.engageinteractive.co.uk/itoggle/

(Should work on your iphone too)

Re:Turn your checkboxes into iPhone-style binary switches by ronnier on Tuesday January 26, 2010 @03:59PM (#1078840)
I actually have your site open in a tab now (since last night), kind of funny that I noticed this post on HN and then your comment. I actually prefer your method over the others I found for one reason, it's only clickable, not dragable.
Re:Turn your checkboxes into iPhone-style binary switches by truebosko on Tuesday January 26, 2010 @03:39PM (#1078773)
Incase some don't know, jQTouch.com has this functionality, and many other native-looking iPhone effects.

I realize the purpose of this one is for non-mobile web browsers, but just putting it out there. ;)

Re:Turn your checkboxes into iPhone-style binary switches by aresant on Tuesday January 26, 2010 @02:21PM (#1078507)
Very cool, but absolutely don't use for a functional web-app unless you want to confuse your users.
Re:Turn your checkboxes into iPhone-style binary switches by wmblaettler on Tuesday January 26, 2010 @02:33PM (#1078548)
Unless it is the mobile (read: iphone-targeted) version of said web app where you want to emulate the iphone user experience
Re:Turn your checkboxes into iPhone-style binary switches by callahad on Tuesday January 26, 2010 @03:54PM (#1078826)
But then again, you'll never be able to perfectly replicate native iPhone UI in a browser. It's best to avoid creating that expectation with your users.
Re:Turn your checkboxes into iPhone-style binary switches by aresant on Tuesday January 26, 2010 @02:59PM (#1078638)
Good point!
Re:Turn your checkboxes into iPhone-style binary switches by alttab on Tuesday January 26, 2010 @02:30PM (#1078535)
Unless behind the scenes it does an ajax call to the server to update the value.

I think that web apps that behave like embedded runtime applications are going to be more prevalent as time goes on.

Re:Turn your checkboxes into iPhone-style binary switches by mortenjorck on Tuesday January 26, 2010 @04:53PM (#1078997)
You allude to an important point of distinction between the Cocoa Touch binary switch and the traditional form checkbox: The former is presumed instantaneously effective, while the latter may or may not require a form submission.
Re:Turn your checkboxes into iPhone-style binary switches by wmblaettler on Tuesday January 26, 2010 @02:35PM (#1078557)
Very good point, ajax is a must and most likely what aresant was referring to as the confusing part for users.
Re:Turn your checkboxes into iPhone-style binary switches by daleharvey on Tuesday January 26, 2010 @03:04PM (#1078658)
I used this for

http://pastebin.me/

slightly confusing, but a checkbox didnt quite work either

Re:Turn your checkboxes into iPhone-style binary switches by staunch on Tuesday January 26, 2010 @04:12PM (#1078877)
Not that it's necessarily a good idea, but this is usually handled by having two tabs.
Re:Turn your checkboxes into iPhone-style binary switches by jcromartie on Tuesday January 26, 2010 @04:23PM (#1078911)
That's really confusing. A control that says what will happen when you click on it is a button. What you have there is a button that is trying to look like a switch.
Re:Turn your checkboxes into iPhone-style binary switches by frozendevil on Tuesday January 26, 2010 @04:01PM (#1078845)
It's confusing because your labels are backwards.
Re:Turn your checkboxes into iPhone-style binary switches by Raphael on Tuesday January 26, 2010 @04:30PM (#1078937)
Would be cooler if it used CSS transitions.
Re:Turn your checkboxes into iPhone-style binary switches by barmstrong on Tuesday January 26, 2010 @10:36PM (#1079685)
Nice work!
Re:Turn your checkboxes into iPhone-style binary switches by gcb on Tuesday January 26, 2010 @04:07PM (#1078864)
The only usability advantage over a regular checkbox would be if you could copy and paste the ON or OFF state. but this solution you end up with "option ONOFF" on the clip board.

here is my solution, done when he first announced this gadget.

http://github.com/gcb/iphone-style-checkboxes

feel free to fork it and implement his new spify animation.

Re:Turn your checkboxes into iPhone-style binary switches by jorsh on Tuesday January 26, 2010 @06:51PM (#1079279)
I was kind of surprised that something so trivial required JQuery or Prototype. Really now?
Re:Turn your checkboxes into iPhone-style binary switches by eru on Tuesday January 26, 2010 @02:12PM (#1078485)
It's fun to switch a switch.