<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ed Spencer &#187; form</title>
	<atom:link href="http://edspencer.net/tag/form/feed" rel="self" type="application/rss+xml" />
	<link>http://edspencer.net</link>
	<description>A Sencha Architect</description>
	<lastBuildDate>Sat, 11 Feb 2012 09:20:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Weird bug preventing ExtJS checkboxes from submitting properly</title>
		<link>http://edspencer.net/2008/10/weird-bug-preventing-extjs-checkboxes.html</link>
		<comments>http://edspencer.net/2008/10/weird-bug-preventing-extjs-checkboxes.html#comments</comments>
		<pubDate>Fri, 24 Oct 2008 12:53:00 +0000</pubDate>
		<dc:creator>Ed Spencer</dc:creator>
				<category><![CDATA[extjs]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[ext]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[weird]]></category>

		<guid isPermaLink="false">http://192.168.2.15/Projects/wordpress/?p=16</guid>
		<description><![CDATA[<p>This applies to ExtJS 2.2, the most current version as of the time of writing.</p>
<p>Checkboxes often make their way into my Ext JS forms.  Sometimes, though, they don&#8217;t behave as expected.  Checking and unchecking them would frequently fail, simply not doing anything.  Sometimes it would work, sometimes it wouldn&#8217;t &#8211; how frustrating!</p>
<p>It turns out there is a bug with ticking/unticking checkboxes in Ext.  If you click on the checkbox itself everything works fine &#8211; the image of the checkbox updates and the correct value is submitted.  If however you click on the checkbox&#8217;s <i>label</i>, the image of the checkbox is updated but the correct value is <b>not</b> submitted.  So if the box started off unticked and you ticked it by clicking the label, the image is updated but nothing else happens.</p>
<p>This is extremely unintuitive because you can see that the box has been checked, but its internal representation hasn&#8217;t actually changed.  Because I usually click the label this took me over an hour to track down, so I hope this helps someone out.  Once I had identified the bug, a quick Google search points to <a href="http://extjs.com/forum/showthread.php?t=44603">this thread on the ExtJS forums</a>, which has some guidance on this.</p>
]]></description>
			<content:encoded><![CDATA[<p>This applies to ExtJS 2.2, the most current version as of the time of writing.</p>
<p>Checkboxes often make their way into my Ext JS forms.  Sometimes, though, they don&#8217;t behave as expected.  Checking and unchecking them would frequently fail, simply not doing anything.  Sometimes it would work, sometimes it wouldn&#8217;t &#8211; how frustrating!</p>
<p>It turns out there is a bug with ticking/unticking checkboxes in Ext.  If you click on the checkbox itself everything works fine &#8211; the image of the checkbox updates and the correct value is submitted.  If however you click on the checkbox&#8217;s <i>label</i>, the image of the checkbox is updated but the correct value is <b>not</b> submitted.  So if the box started off unticked and you ticked it by clicking the label, the image is updated but nothing else happens.</p>
<p>This is extremely unintuitive because you can see that the box has been checked, but its internal representation hasn&#8217;t actually changed.  Because I usually click the label this took me over an hour to track down, so I hope this helps someone out.  Once I had identified the bug, a quick Google search points to <a href="http://extjs.com/forum/showthread.php?t=44603">this thread on the ExtJS forums</a>, which has some guidance on this.</p>
]]></content:encoded>
			<wfw:commentRss>http://edspencer.net/2008/10/weird-bug-preventing-extjs-checkboxes.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

