<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quick jQuery Browser Detection Snippet</title>
	<atom:link href="http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/</link>
	<description>The day to day blog of Ahmed Nuaman, Freelance Designer and Developer</description>
	<lastBuildDate>Fri, 14 May 2010 16:24:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: petra</title>
		<link>http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/comment-page-1/#comment-175</link>
		<dc:creator>petra</dc:creator>
		<pubDate>Tue, 25 Aug 2009 18:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://ahmednuaman.com/blog/?p=282#comment-175</guid>
		<description>thank you, it&#039;s working like a charm :)</description>
		<content:encoded><![CDATA[<p>thank you, it&#8217;s working like a charm <img src='http://ahmednuaman.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed</title>
		<link>http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/comment-page-1/#comment-174</link>
		<dc:creator>Ahmed</dc:creator>
		<pubDate>Tue, 25 Aug 2009 15:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://ahmednuaman.com/blog/?p=282#comment-174</guid>
		<description>The example&#039;s been updated, it works in the same way, check it out...</description>
		<content:encoded><![CDATA[<p>The example&#8217;s been updated, it works in the same way, check it out&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petra</title>
		<link>http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/comment-page-1/#comment-173</link>
		<dc:creator>petra</dc:creator>
		<pubDate>Tue, 25 Aug 2009 15:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://ahmednuaman.com/blog/?p=282#comment-173</guid>
		<description>one more question though... I noticed that by using the JS that you have included in your &quot;live&quot; example doesn&#039;t have the example above included... and it is much more extensive JS file than I anticipated. 
I have originally started with including this, but that didn&#039;t seem to work:
&lt;code&gt;function ready()
{
    detectBrowsers();
}

function detectBrowsers()
{
    if ( $.browser.msie )
    {
        if ( $.browser.version == &#039;8.0&#039; )
        {
            $(&#039;body&#039;).addClass( &#039;ie8&#039; );
        }
        else if ( $.browser.version == &#039;7.0&#039; )
        {
            $(&#039;body&#039;).addClass( &#039;ie7&#039; );
        }
        else
        {
            $(&#039;body&#039;).addClass( &#039;ie6&#039; );
        }
    }

    if ( $.browser.safari )
    {
        if ( navigator.userAgent.indexOf( &#039;Safari&#039; ) != -1 )
        {
            $(&#039;body&#039;).addClass( &#039;safari&#039; );
           
            initSafariSearch();
        }
        else
        {
            $(&#039;body&#039;).addClass( &#039;chrome&#039; );
        }
    }

    if ( $.browser.mozilla )
    {
        if ( $.browser.version.substr( 0, 3 ) == &#039;1.9&#039; )
        {
            $(&#039;body&#039;).addClass( &#039;ff3&#039; );
        }
        else
        {
            $(&#039;body&#039;).addClass( &#039;ff2&#039; );
        }
    }

    if ( navigator.userAgent.indexOf( &#039;Windows&#039; ) != -1 )
    {
        $(&#039;body&#039;).addClass( &#039;windows&#039; );
    }
    else if ( navigator.userAgent.indexOf( &#039;Mac&#039; ) != -1 )
    {
        $(&#039;body&#039;).addClass( &#039;mac&#039; );
    }
}

$(document).ready( ready );
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>one more question though&#8230; I noticed that by using the JS that you have included in your &#8220;live&#8221; example doesn&#8217;t have the example above included&#8230; and it is much more extensive JS file than I anticipated.<br />
I have originally started with including this, but that didn&#8217;t seem to work:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function ready()<br />
{<br />
&nbsp; &nbsp; detectBrowsers();<br />
}<br />
<br />
function detectBrowsers()<br />
{<br />
&nbsp; &nbsp; if ( $.browser.msie )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( $.browser.version == '8.0' )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'ie8' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if ( $.browser.version == '7.0' )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'ie7' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'ie6' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if ( $.browser.safari )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( navigator.userAgent.indexOf( 'Safari' ) != -1 )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'safari' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; initSafariSearch();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'chrome' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if ( $.browser.mozilla )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( $.browser.version.substr( 0, 3 ) == '1.9' )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'ff3' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'ff2' );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if ( navigator.userAgent.indexOf( 'Windows' ) != -1 )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'windows' );<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if ( navigator.userAgent.indexOf( 'Mac' ) != -1 )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $('body').addClass( 'mac' );<br />
&nbsp; &nbsp; }<br />
}<br />
<br />
$(document).ready( ready );</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed</title>
		<link>http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/comment-page-1/#comment-172</link>
		<dc:creator>Ahmed</dc:creator>
		<pubDate>Tue, 25 Aug 2009 15:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://ahmednuaman.com/blog/?p=282#comment-172</guid>
		<description>Cool. It looks like you were missing the: 

&lt;code lang=&quot;javascript&quot;&gt;$(document).ready( detectBrowsers )&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Cool. It looks like you were missing the:</p>
<div class="codecolorer-container javascript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span> detectBrowsers <span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: petra</title>
		<link>http://ahmednuaman.com/blog/2009/07/16/quick-jquery-browser-detection-snippet/comment-page-1/#comment-171</link>
		<dc:creator>petra</dc:creator>
		<pubDate>Tue, 25 Aug 2009 15:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://ahmednuaman.com/blog/?p=282#comment-171</guid>
		<description>just got it to work :) THANK YOU AGAIN!!!!!!</description>
		<content:encoded><![CDATA[<p>just got it to work <img src='http://ahmednuaman.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  THANK YOU AGAIN!!!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
