News for hackers. Stuff that matters.
Re:Turn boring HTML checkboxes into iPhone toggle switches by makecheck on Wednesday August 05, 2009 @11:49PM (#744769)
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 by mattp on Thursday August 06, 2009 @03:53AM (#745006)
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 by DougBTX on Thursday August 06, 2009 @06:55AM (#745171)
The text label beside the radio button is clickable too, if the page author has used the <label> tag correctly.
Re:Turn boring HTML checkboxes into iPhone toggle switches by jqr on Thursday August 06, 2009 @08:04AM (#745265)
the entire control can be clicked to toggle, and yes it's composed of two overlapping labels!
Re:Turn boring HTML checkboxes into iPhone toggle switches by tumult on Thursday August 06, 2009 @01:26AM (#744864)
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 by michaelneale on Thursday August 06, 2009 @03:26AM (#744982)
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 by s3graham on Wednesday August 05, 2009 @11:08PM (#744711)
Ack, please don't. Neither space nor tab work (at least in Chromium), and not owning an iPhone, those things don't intuit "toggle" to me.
Re:Turn boring HTML checkboxes into iPhone toggle switches by jrockway on Thursday August 06, 2009 @09:01AM (#745348)
Don't you get it, they're an Apple look-alike. How can you not like that!?
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.
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.

Re:Turn boring HTML checkboxes into iPhone toggle switches by jrockway on Thursday August 06, 2009 @09:02AM (#745350)
Most of the code in jQuery is not to work around IE, it's for features you actually want. So I doubt this would buy you much savings, especially when gzipped.
Re:Turn boring HTML checkboxes into iPhone toggle switches by hyperbovine on Thursday August 06, 2009 @12:32AM (#744823)
Standards: who needs em.
Re:Turn boring HTML checkboxes into iPhone toggle switches by barredo on Wednesday August 05, 2009 @08:17PM (#744543)
This is the first iPhone-like toggle switches that works well and are usable. Both with click and drag.

Edit: They are an improvement of these: http://awardwinningfjords.com/2009/06/16/iphone-style-checkb...

Kudos to the author.

Re:Turn boring HTML checkboxes into iPhone toggle switches by endtwist on Wednesday August 05, 2009 @08:47PM (#744577)
Actually, mooSwitch has been around since 2008 and has always supported both click and drag, however, I don't believe it actually works on the iPhone (quite a thing to miss):

http://reaktivo.com/mt/mooswitch/index.php

Re:Turn boring HTML checkboxes into iPhone toggle switches by slig on Wednesday August 05, 2009 @11:07PM (#744710)
I tested other fancy option button like this in a very simple webapp and the users doesn't seem to understand that they can change it.

for now on, I'll stick with the default, unless the web app is build to run on the iPhone.

Re:Turn boring HTML checkboxes into iPhone toggle switches by idleworx on Thursday August 06, 2009 @01:21PM (#745931)
just because it looks cool on another platform doesn't mean it's needed or useful in a regular web browser. the majority of people who use web browsers probably don't use an iphone, so the interface wouldn't make sense to them.
Re:Turn boring HTML checkboxes into iPhone toggle switches by mjgoins on Thursday August 06, 2009 @08:35AM (#745306)
Let's just hope they're not patented.
Re:Turn boring HTML checkboxes into iPhone toggle switches by TweedHeads on Wednesday August 05, 2009 @11:18PM (#744722)
Absolutely beautiful!
Re:Turn boring HTML checkboxes into iPhone toggle switches by sayrer on Thursday August 06, 2009 @03:14AM (#744969)
oh yeah, turn checkboxes into iPhone toggle switches. that's not boring! very, very exciting.

what is wrong with you people?