<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Fancy checkboxes and radio buttons</title>
	<atom:link href="http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/</link>
	<description>Hypertext rulez™</description>
	<pubDate>Sun, 07 Sep 2008 18:10:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2721</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Wed, 21 Jun 2006 20:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2721</guid>
		<description>@Jens &#038; Jery: See my &lt;a href="http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2505"&gt;previous comment&lt;/a&gt;. I&#8217;m not representing this technique in a way of the good or the bad practice, just providing you with a solution.</description>
		<content:encoded><![CDATA[<p>@Jens &#038; Jery: See my <a href="http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2505">previous comment</a>. I&#8217;m not representing this technique in a way of the good or the bad practice, just providing you with a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jery</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2716</link>
		<dc:creator>Jery</dc:creator>
		<pubDate>Wed, 21 Jun 2006 19:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2716</guid>
		<description>Nice trick. But I'm with sonja on this. I would also be worried about usability and accessibility.</description>
		<content:encoded><![CDATA[<p>Nice trick. But I&#8217;m with sonja on this. I would also be worried about usability and accessibility.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Meiert</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2702</link>
		<dc:creator>Jens Meiert</dc:creator>
		<pubDate>Wed, 21 Jun 2006 12:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2702</guid>
		<description>Delayed due to comment post problems:

Listen to &lt;a href="#comment-2501"&gt;Sonja&lt;/a&gt;. Breaking interface conventions and standard input elements &lt;em&gt;asks for caution&lt;/em&gt;.</description>
		<content:encoded><![CDATA[<p>Delayed due to comment post problems:</p>
<p>Listen to <a href="#comment-2501">Sonja</a>. Breaking interface conventions and standard input elements <em>asks for caution</em>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Fitzsimons</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2633</link>
		<dc:creator>Nick Fitzsimons</dc:creator>
		<pubDate>Mon, 19 Jun 2006 14:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2633</guid>
		<description>I haven't checked this in depth, but I heard recently that a better check for Safari is to test the userAgent for "WebKit" (or "webkit" in your code, as you use "toLowerCase"), as the code will then work in other applications that use the Apple HTML rendering component - for example, NetNewsWire.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t checked this in depth, but I heard recently that a better check for Safari is to test the userAgent for &#8220;WebKit&#8221; (or &#8220;webkit&#8221; in your code, as you use &#8220;toLowerCase&#8221;), as the code will then work in other applications that use the Apple HTML rendering component - for example, NetNewsWire.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2529</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Wed, 14 Jun 2006 20:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2529</guid>
		<description>seems like a lot of code for very little output,  how's it do in a mobile device?</description>
		<content:encoded><![CDATA[<p>seems like a lot of code for very little output,  how&#8217;s it do in a mobile device?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2521</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Tue, 13 Jun 2006 18:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2521</guid>
		<description>@Koen: Thanks for the remark, it seems that I copied generated source. Anyway, it&#8217;s updated now.</description>
		<content:encoded><![CDATA[<p>@Koen: Thanks for the remark, it seems that I copied generated source. Anyway, it&#8217;s updated now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koen</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2520</link>
		<dc:creator>Koen</dc:creator>
		<pubDate>Tue, 13 Jun 2006 18:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2520</guid>
		<description>Oh, and is there a workaround for the behaviour that i'm experiencing; when you click, the onclick event-handler is called twice?</description>
		<content:encoded><![CDATA[<p>Oh, and is there a workaround for the behaviour that i&#8217;m experiencing; when you click, the onclick event-handler is called twice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koen</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2519</link>
		<dc:creator>Koen</dc:creator>
		<pubDate>Tue, 13 Jun 2006 18:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2519</guid>
		<description>Youre HTML example is not correct, you have already filled the class with c_off or c_on. But as you are mentioning, the JS adds this extra classname automatically. And because you're checking for className's that contain exaclty 'label_check' the script won't work. 

Btw, this line:&lt;code&gt; l.className = (safari) ? (inp.checked == true) ? 'label_check c_on' : 'label_check c_off' : (inp.checked) ? 'label_check c_on' : 'label_check c_off';&lt;/code&gt;

is able to be shorter:
&lt;code&gt;l.className = (safari &#038;&#038; inp.checked == true &#124;&#124; inp.checked) ? 'label_check c_off' : 'label_check c_on';&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Youre HTML example is not correct, you have already filled the class with c_off or c_on. But as you are mentioning, the JS adds this extra classname automatically. And because you&#8217;re checking for className&#8217;s that contain exaclty &#8216;label_check&#8217; the script won&#8217;t work. </p>
<p>Btw, this line:<code> l.className = (safari) ? (inp.checked == true) ? 'label_check c_on' : 'label_check c_off' : (inp.checked) ? 'label_check c_on' : 'label_check c_off';</code></p>
<p>is able to be shorter:<br />
<code>l.className = (safari &#038;&#038; inp.checked == true || inp.checked) ? 'label_check c_off' : 'label_check c_on';</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2518</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Tue, 13 Jun 2006 13:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2518</guid>
		<description>@Michael Thompson: All the CSS reposition is made &lt;em&gt;after&lt;/em&gt; JS changes class names on the &lt;code&gt;label&lt;/code&gt;s. Thanks for the remark, though.</description>
		<content:encoded><![CDATA[<p>@Michael Thompson: All the CSS reposition is made <em>after</em> JS changes class names on the <code>label</code>s. Thanks for the remark, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Thompson</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2517</link>
		<dc:creator>Michael Thompson</dc:creator>
		<pubDate>Tue, 13 Jun 2006 12:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2517</guid>
		<description>Wow, tens of lines of extraneous code to style a checkbox? And it's still not guaranteed to work in all browsers (and I mean visually work, a checked box is a checked box)?

Where can I sign up? I can see where this is appropriate and fun for entertainment sites; but if I ever see this anywhere else I'm leaving the web.

Any mobile devices with half of a CSS brain will position the input appropriately (off-screen), style the label's background (unchecked until the JS runs), and most likely never be able to touch and/or handle the JS effectively.

Creative, though. :)</description>
		<content:encoded><![CDATA[<p>Wow, tens of lines of extraneous code to style a checkbox? And it&#8217;s still not guaranteed to work in all browsers (and I mean visually work, a checked box is a checked box)?</p>
<p>Where can I sign up? I can see where this is appropriate and fun for entertainment sites; but if I ever see this anywhere else I&#8217;m leaving the web.</p>
<p>Any mobile devices with half of a CSS brain will position the input appropriately (off-screen), style the label&#8217;s background (unchecked until the JS runs), and most likely never be able to touch and/or handle the JS effectively.</p>
<p>Creative, though. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trovster</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2515</link>
		<dc:creator>trovster</dc:creator>
		<pubDate>Tue, 13 Jun 2006 08:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2515</guid>
		<description>@ marko, what 'fanaticism'?</description>
		<content:encoded><![CDATA[<p>@ marko, what &#8216;fanaticism&#8217;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2514</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Tue, 13 Jun 2006 05:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2514</guid>
		<description>&lt;blockquote&gt;&lt;p&gt;@Mark &#038; Johan: Thanks for the links! Now we have three different approaches here.&lt;/p&gt;&lt;/blockquote&gt;

I tebi hvala!</description>
		<content:encoded><![CDATA[<blockquote><p>@Mark &#038; Johan: Thanks for the links! Now we have three different approaches here.</p>
</blockquote>
<p>I tebi hvala!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yannick</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2512</link>
		<dc:creator>Yannick</dc:creator>
		<pubDate>Tue, 13 Jun 2006 03:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2512</guid>
		<description>trovster &#038; Mauricio: Thanks for pointing that out. I wasn't aware that it was changed in the WCAG 2.0 Spec.</description>
		<content:encoded><![CDATA[<p>trovster &#038; Mauricio: Thanks for pointing that out. I wasn&#8217;t aware that it was changed in the WCAG 2.0 Spec.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2510</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Mon, 12 Jun 2006 22:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2510</guid>
		<description>@Mark &#38; Johan: Thanks for the links! Now we have three different approaches here.</description>
		<content:encoded><![CDATA[<p>@Mark &#38; Johan: Thanks for the links! Now we have three different approaches here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2509</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Mon, 12 Jun 2006 21:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2509</guid>
		<description>http://slayeroffice.com/code/custom_checkbox/

Just look at the code</description>
		<content:encoded><![CDATA[<p><a href="http://slayeroffice.com/code/custom_checkbox/" rel="nofollow">http://slayeroffice.com/code/custom_checkbox/</a></p>
<p>Just look at the code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2507</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 12 Jun 2006 20:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2507</guid>
		<description>Also see the original post regarding this technique, http://flog.co.nz/2005/04/27/arc-adams-radiocheckbox-customisation/</description>
		<content:encoded><![CDATA[<p>Also see the original post regarding this technique, <a href="http://flog.co.nz/2005/04/27/arc-adams-radiocheckbox-customisation/" rel="nofollow">http://flog.co.nz/2005/04/27/arc-adams-radiocheckbox-customisation/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauricio Samy Silva</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2506</link>
		<dc:creator>Mauricio Samy Silva</dc:creator>
		<pubDate>Mon, 12 Jun 2006 20:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2506</guid>
		<description>W3C specs says:
&lt;blockquote&gt;&lt;p&gt;"To associate a label with another control implicitly, the control element must be within the contents of the LABEL element. In this case, the LABEL may only contain one control element. The label itself may be positioned before or after the associated control."&lt;/p&gt;&lt;/blockquote&gt;
See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1</description>
		<content:encoded><![CDATA[<p>W3C specs says:</p>
<blockquote><p>&#8220;To associate a label with another control implicitly, the control element must be within the contents of the LABEL element. In this case, the LABEL may only contain one control element. The label itself may be positioned before or after the associated control.&#8221;</p>
</blockquote>
<p>See: <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1" rel="nofollow">http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2505</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Mon, 12 Jun 2006 19:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2505</guid>
		<description>@trovster: From the link you provided, I can only read that the implicit &lt;code&gt;label&lt;/code&gt; is the one without the &lt;code&gt;for&lt;/code&gt; attribute, not automatically each one that is wrapped around the &lt;code&gt;input&lt;/code&gt; element. In the example at hand, all the &lt;code&gt;label&lt;/code&gt;s have the &lt;code&gt;for&lt;/code&gt; attribute. Anybody else on that subject?

Pixy&#8217;s technique is certainly very useful, but why the such fanaticism? : )

@Stephanie: Which version are you looking in? Everything seems to be alright in the latest stable Camino on my Mac.

@Sonja: You&#8217;re absolutely right, I&#8217;m not encouraging anybody here, just providing a solution.</description>
		<content:encoded><![CDATA[<p>@trovster: From the link you provided, I can only read that the implicit <code>label</code> is the one without the <code>for</code> attribute, not automatically each one that is wrapped around the <code>input</code> element. In the example at hand, all the <code>label</code>s have the <code>for</code> attribute. Anybody else on that subject?</p>
<p>Pixy&#8217;s technique is certainly very useful, but why the such fanaticism? : )</p>
<p>@Stephanie: Which version are you looking in? Everything seems to be alright in the latest stable Camino on my Mac.</p>
<p>@Sonja: You&#8217;re absolutely right, I&#8217;m not encouraging anybody here, just providing a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trovster</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2504</link>
		<dc:creator>trovster</dc:creator>
		<pubDate>Mon, 12 Jun 2006 19:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2504</guid>
		<description>'nothing wrong' is not entirely correct. The (now slated) second version Web Content Accessibility Guidelines states that http://www.w3.org/TR/2005/WD-WCAG20-HTML-TECHS-20050630/#label implicit form labels are deprecated in favour of explicit labels.

The example are pretty, but I'd like to see a pure test case showcasing this technique. A lot of people will be able to use this as trail and error example, instead of trawling through an entire sites CSS/HTML and JavaScript.

I would also like to see all the form-related images combined like in the http://wellstyled.com/css-nopreload-rollovers.html Pixy no preload image method.</description>
		<content:encoded><![CDATA[<p>&#8216;nothing wrong&#8217; is not entirely correct. The (now slated) second version Web Content Accessibility Guidelines states that <a href="http://www.w3.org/TR/2005/WD-WCAG20-HTML-TECHS-20050630/#label" rel="nofollow">http://www.w3.org/TR/2005/WD-WCAG20-HTML-TECHS-20050630/#label</a> implicit form labels are deprecated in favour of explicit labels.</p>
<p>The example are pretty, but I&#8217;d like to see a pure test case showcasing this technique. A lot of people will be able to use this as trail and error example, instead of trawling through an entire sites CSS/HTML and JavaScript.</p>
<p>I would also like to see all the form-related images combined like in the <a href="http://wellstyled.com/css-nopreload-rollovers.html" rel="nofollow">http://wellstyled.com/css-nopreload-rollovers.html</a> Pixy no preload image method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonja</title>
		<link>http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2501</link>
		<dc:creator>Sonja</dc:creator>
		<pubDate>Mon, 12 Jun 2006 18:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/06/11/fancy-checkboxes-and-radio-buttons/#comment-2501</guid>
		<description>I would also be worried about usability with this. I'm just waiting for the first person to use an unhappy clown as  an unchecked and a happy clown as a checked radio button. Some times the 'nice' submit button is in disguise already.

I'm not saying don't use this. I'm saying think about  your users for a bit (;</description>
		<content:encoded><![CDATA[<p>I would also be worried about usability with this. I&#8217;m just waiting for the first person to use an unhappy clown as  an unchecked and a happy clown as a checked radio button. Some times the &#8216;nice&#8217; submit button is in disguise already.</p>
<p>I&#8217;m not saying don&#8217;t use this. I&#8217;m saying think about  your users for a bit (;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
