<?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>odyniec.net blog &#187; ieFixButtons</title>
	<atom:link href="http://odyniec.net/blog/category/projects/iefixbuttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://odyniec.net/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:37:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE8 vs. Buttons</title>
		<link>http://odyniec.net/blog/2008/03/ie8-vs-buttons/</link>
		<comments>http://odyniec.net/blog/2008/03/ie8-vs-buttons/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 20:23:11 +0000</pubDate>
		<dc:creator>Michal Wojciechowski</dc:creator>
				<category><![CDATA[ieFixButtons]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://odyniec.net/blog/?p=11</guid>
		<description><![CDATA[Remember the ridiculous implementation of the &#60;button&#62; element in IE6 and IE7? Well, I finally had my first hands-on experience with Internet Explorer 8 (beta 1 for developers), so I was able to check if they fixed it. I tried the new IE on a test page I made for the ieFixButtons jQuery plugin. And [...]]]></description>
			<content:encoded><![CDATA[<p>Remember the <a href="http://odyniec.net/blog/?p=4">ridiculous implementation of the <code>&lt;button&gt;</code> element</a> in IE6 and IE7? Well, I finally had my first hands-on experience with Internet Explorer 8 (beta 1 for developers), so I was able to check if they fixed it. I tried the new IE on a <a href="http://odyniec.net/projects/iefixbuttons/test.php">test page</a> I made for the <a href="http://odyniec.net/projects/iefixbuttons/">ieFixButtons jQuery plugin</a>. And you know what? It seems the development team really got it right at last! In IE8 buttons do work as nature intended.</p>
<p>But, I also discovered that my website, the one you&#8217;re looking at right now, is slightly broken in the new IE. Specifically, the top navigation menu items are not displayed correctly. So far, I haven&#8217;t figured out how to fix it, and I wonder if it&#8217;s my fault, or if the beta version of IE8 is, well, too beta, and I should wait for the final version to come out. I will lazily assume the latter for the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://odyniec.net/blog/2008/03/ie8-vs-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buttons Back in Business</title>
		<link>http://odyniec.net/blog/2008/01/buttons-back-in-business/</link>
		<comments>http://odyniec.net/blog/2008/01/buttons-back-in-business/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 21:15:14 +0000</pubDate>
		<dc:creator>Michal Wojciechowski</dc:creator>
				<category><![CDATA[ieFixButtons]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://odyniec.net/blog/?p=4</guid>
		<description><![CDATA[Some time ago, Kevin Hale of Particletree described his rediscovery of the button element. I also made the same rediscovery once, and I had a brief moment of excitement when I realized how useful the button element can be for quickly putting together a nice web-based user interface.
Then came Internet Explorer and my dreams were [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Some time ago, Kevin Hale of <a href="http://particletree.com/">Particletree</a> described his <a href="http://particletree.com/features/rediscovering-the-button-element/">rediscovery of the button element</a>. I also made the same rediscovery once, and I had a brief moment of excitement when I realized how useful the button element can be for quickly putting together a nice web-based user interface.</p>
<p align="justify">Then came Internet Explorer and my dreams were crushed. The way buttons work in IE (including IE7) is <em>a)</em> standard-incompliant, <em>b)</em> insane, and <em>c)</em> useless. Here&#8217;s why:</p>
<table class="list" border="0">
<thead>
<tr>
<th width="50%">What the standard says</th>
<th width="*">What IE is doing</th>
</tr>
</thead>
<tbody>
<tr>
<td>If the button type is not specified, it defaults to <code>submit</code>.</td>
<td>The default type is <code>button</code>.</td>
</tr>
<tr>
<td>When a button is used to submit a form, the contents of its <code>value</code> attribute is sent to the server.</td>
<td>The <em>inner text</em> of the button is sent to the server.</td>
</tr>
<tr>
<td>If there is more than one <code>submit</code> button, only the value of the activated one is sent to the server.</td>
<td>The <em>inner text</em> of <em>all</em> buttons is sent to the server.<a class="annotation" href="#ie7-fixed"><sup>[1]</sup></a></td>
</tr>
</tbody>
</table>
<div class="table-annotations"><a name="ie7-fixed"><sup>[1]</sup></a></p>
<p>This was kind of fixed in IE7 — the other <code>submit</code> buttons are no longer sent to the server. However, it&#8217;s still the inner text that is transmitted, not the value.</div>
<p align="justify">From a practical point of view, this means that the <code>value</code> attribute is of no use, because it&#8217;s not being sent to the server when the form is submitted — instead, you&#8217;ll get whatever was placed between the <code>&lt;button&gt;</code> and <code>&lt;/button&gt;</code> tags, including any HTML markup (this is just sick!). And, if you have multiple submit buttons in a form, you won&#8217;t be able to tell which one was clicked by the user, as they will be <em>all</em> sent to the server. Seriously, IE developers, what were you thinking?</p>
<p align="justify">Back then, I was left with two choices: either to forget buttons and keep using plain old inputs, or to fight the evil. And fight I did. Long story short, I wrote a piece of JavaScript (you know, the popular real-time browser bug-fixing technology) code which works around the irrational behavior of buttons in IE.</p>
<p align="justify">I&#8217;ve recently released the script as a jQuery plugin named <a href="http://odyniec.net/projects/iefixbuttons/">ieFixButtons</a>. Grab it if you want to use buttons the way they were supposed to.</p>
]]></content:encoded>
			<wfw:commentRss>http://odyniec.net/blog/2008/01/buttons-back-in-business/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
