<?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/"
	 xmlns:slash="http://purl.org/rss/1.0/modules/slash/" 
>

<channel>
	<title>Daniel Bergey &#187; development</title>
	<atom:link href="http://danielbergey.com/motion/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielbergey.com/motion</link>
	<description>Commotion</description>
	<lastBuildDate>Mon, 02 Nov 2009 02:45:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IE Version Reporting in jQuery</title>
		<link>http://danielbergey.com/motion/2008/09/ie-version-reporting-in-jquery/</link>
		<comments>http://danielbergey.com/motion/2008/09/ie-version-reporting-in-jquery/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 04:40:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://www.danielbergey.com/weblog/?p=524</guid>
		<description><![CDATA[Lately in the course of programming events, it came to my attention that under some circumstances IE 7 identifies itself as both IE 6 and IE 7 in the same userAgent string. Worse, I discovered to my horror that jQuery reports it as IE 6 if the IE 6 declaration happens to be ordered last. [...]]]></description>
			<content:encoded><![CDATA[<p>Lately in the course of programming events, it came to my attention that under some circumstances IE 7 identifies itself as both IE 6 and IE 7 in the same userAgent string. Worse, I discovered to my horror that jQuery reports it as IE 6 if the IE 6 declaration happens to be ordered last. This would never do.</p>

<p>The following code snippet will refine jQuery&#8217;s browser detection (tested in 1.2.6, <a href="http://dev.jquery.com/ticket/3402">patch submitted for 1.3</a>), and makes sure that if two or more IE version declarations are present in the userAgent string, jQuery reports the highest of them.</p>

<p><style>
code[language=javascript] {
    font: 10px &#8220;bitstream vera sans mono&#8221;, monaco, courier;
    line-height: 140%;
    white-space: pre;
    padding: 0&#160;20px 12px 20px;
    background: #eee;
    color: #666;
    display: block;
    border: 3px solid #ccc;
    border-width: 2px 0;
    overflow: auto;
}
</style>
<code language="javascript">
// Ensure that we report the highest IE version present in the userAgent string
if ( jQuery.browser.msie )
    jQuery.browser.version = (userAgent.match( /ie ([\d.]+)/ig ) || [])
        .sort().pop().replace( /[^\d.]/g, '' );
</code></p>

<p>To use it, you can either paste it into your jquery.js just after the browser detection stuff (harder), or include it as a script plugin after your jQuery script tag (easier).</p>

<div class="warning"><b>Disclaimer:</b> I&#8217;ve done some rudimentary testing, but you&#8217;re responsible for testing it in your own web project.</div>

<p>This all comes about for several reasons: the True IE 6 obviously won&#8217;t be mentioning IE 7 because it didn&#8217;t exist at release time, but the True IE 7 might want to pretend it was IE 6 for compatibility with older pages. There&#8217;s also apparently <a href="http://jamazon.co.uk/web/2008/07/23/an-ie7-bug-that-returns-msie-60-user-agent-string/">a situation</a> wherein an extra-long Windows registry entry will overwhelm IE 7 to the point where it falls back to reporting itself as IE 6.</p>

<p>If similar situations arise after IE 8 (final) is released, this code should take care of those, too. I say &#8220;should,&#8221; because I obviously don&#8217;t know what IE&#8217;s going to do in the future. (Sometimes I don&#8217;t even know what IE&#8217;s doing <em>right now</em>.)</p>
<div class="smartshare" style="display: none;"></div>]]></content:encoded>
			<wfw:commentRss>http://danielbergey.com/motion/2008/09/ie-version-reporting-in-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<slash:comments>3</slash:comments>
	</item>
		<item>
		<title>Disappointed</title>
		<link>http://danielbergey.com/motion/2008/09/disappointed/</link>
		<comments>http://danielbergey.com/motion/2008/09/disappointed/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 01:37:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.danielbergey.com/weblog/?p=517</guid>
		<description><![CDATA[Update: I should make a clarification: I haven&#8217;t written anything for the iPhone yet, nor have I had a rejection letter (though after a re-read, it does sound like I&#8217;m a little bitter that way). I&#8217;m just disappointed at the whole situation, and frustrated for the victims. I&#8217;ve been an Apple fan for twenty years, [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Update:</strong> I should make a clarification: I haven&#8217;t written anything for the iPhone yet, nor have I had a rejection letter (though after a re-read, it does sound like I&#8217;m a little bitter that way). I&#8217;m just disappointed at the whole situation, and frustrated for the victims. I&#8217;ve been an Apple fan for twenty years, and I don&#8217;t ever remember such blatant Microsoft-like behavior.</em></p>

<p>I&#8217;ll finally say it: I&#8217;m disappointed with Apple.</p>

<p>Since before it was cool, I&#8217;ve wanted a device that consolidated all my pocket gadgets: iPod, phone, PDA, etc. More than a year and a half ago, Apple finally introduced the long-rumored iPhone: everyone&#8217;s dream device, promising convergence, productivity, and the sheer joy users and developers have come to expect from using an Apple-designed user interface.</p>

<p>I didn&#8217;t buy one when they were first announced, in large part because of the wallet-busting $600 price tag, and in small part because there was no official way to develop or install my own applications and games on it. When I had my Palm, I&#8217;d become rather attached to SimCity and Pocket Quicken, and the thought of being able to carry Real Software with me wherever I went was very exciting.</p>

<p>When the SDK was announced nearly a year ago, the stage was set, and with the 3G iPhone came subsidization. Finally, an iPhone was nearly within my financial grasp.</p>

<p>Then this mess happened. First, Apple inexplicably kept all developers under an NDA, which had the (however unintended) effect of stifling collaboration and developer assistance, traditionally very important processes when writing software for a new platform.</p>

<p>Second, Apple has now decided that not only will their App Store be the sole source of iPhone software, but that they reserve the right to bar any software from the store they see fit. The gist of it is that a prospective developer (let&#8217;s call him, oh, I don&#8217;t know, <em>Daniel</em>) can conceive an idea, spend six months of his free time pouring his creative energy into it, submit his software for distribution, and be denied the fruit of his labors without any warning or real explanation.</p>

<p>I usually try to give Apple the the benefit of the doubt. But I was excited about using and possibly developing for (should I find any holes to fill) the iPhone. This doesn&#8217;t exactly make it sound like fun.</p>
<div class="smartshare" style="display: none;"></div>]]></content:encoded>
			<wfw:commentRss>http://danielbergey.com/motion/2008/09/disappointed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<slash:comments>3</slash:comments>
	</item>
	</channel>
</rss>
