<?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>Softcore software development &#187; jquery</title>
	<atom:link href="http://tea.cesaroliveira.net/archives/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://tea.cesaroliveira.net</link>
	<description>It&#039;s all about the cycles</description>
	<lastBuildDate>Sun, 01 Aug 2010 02:04:06 +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>deprecate this</title>
		<link>http://tea.cesaroliveira.net/archives/51</link>
		<comments>http://tea.cesaroliveira.net/archives/51#comments</comments>
		<pubDate>Sat, 03 Jan 2009 08:06:39 +0000</pubDate>
		<dc:creator>Cesar</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[konqueror]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.cesaroliveira.net/?p=50</guid>
		<description><![CDATA[What I thought was a bug in the jQuery.browser, turns out to be a bug, but on a function that was deprecated (according to their nightly source) and therefore not likely to be fixed. The bug occurred when calling jQuery.browser.safari in Google Chrome. It would return true instead of false because the user agent had [...]]]></description>
			<content:encoded><![CDATA[<p>What I thought was a bug in the <a href="http://docs.jquery.com/Utilities/jQuery.browser" onclick="pageTracker._trackPageview('/outgoing/docs.jquery.com/Utilities/jQuery.browser?referer=');">jQuery.browser</a>, turns out to be a bug, but on a function that was deprecated (according to their nightly source) and therefore not likely to be fixed. The bug occurred when calling jQuery.browser.safari in Google Chrome. It would return <em>true</em> instead of false because the user agent had the word webkit in it (yes. That&#8217;s the browser sniffing method they use). Some simple methods work better than <a href="http://www.ardisson.org/afkar/2009/01/01/and-the-winner-is%E2%80%A6/" onclick="pageTracker._trackPageview('/outgoing/www.ardisson.org/afkar/2009/01/01/and-the-winner-is_E2_80_A6/?referer=');">others</a>.</p>
<p><span style="text-decoration:line-through">I need browser detection so I can point users to helpful places when they have javascript disabled. Turns out my site is really broken when js is disabled. And when css is disabled as well, but that&#8217;s another problem.</span> I made a quick and dirty <a href="http://www.cesaroliveira.net/files/2009-01-03/jquery-browser-detection.js" onclick="pageTracker._trackPageview('/outgoing/www.cesaroliveira.net/files/2009-01-03/jquery-browser-detection.js?referer=');">jQuery plugin</a> that includes konqueror, Google Chrome, and fixes the bug mentioned above.</p>
<p>Using it is as simple as :<br />
<code>$.browser.konqueror<br />
$.browser.chrome</code></p>
<p>But don&#8217;t take my word for it. Try out the <a href="http://www.cesaroliveira.net/files/2009-01-03/" onclick="pageTracker._trackPageview('/outgoing/www.cesaroliveira.net/files/2009-01-03/?referer=');">demo</a> and view the source! It&#8217;s under the <a href="http://www.opensource.org/licenses/mit-license.php" onclick="pageTracker._trackPageview('/outgoing/www.opensource.org/licenses/mit-license.php?referer=');">MIT license</a>. It&#8217;s not included in the source because it is just too much overhead.</p>
]]></content:encoded>
			<wfw:commentRss>http://tea.cesaroliveira.net/archives/51/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross browser tidbits</title>
		<link>http://tea.cesaroliveira.net/archives/50</link>
		<comments>http://tea.cesaroliveira.net/archives/50#comments</comments>
		<pubDate>Thu, 01 Jan 2009 21:25:05 +0000</pubDate>
		<dc:creator>Cesar</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[browser compatibility]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://www.cesaroliveira.net/?p=49</guid>
		<description><![CDATA[for each&#8230;in doesn&#8217;t work in Opera/IE/Safari. So avoid it when creating web pages and use for loops instead. In fact, you shouldn&#8217;t even be using it in arrays. oops. (Javascript is special in this way) While location is defined by most browsers, most let you redefine it in a local scope. Not Opera $(&#8216;&#60;a&#62;&#8217;) may [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for_each...in" onclick="pageTracker._trackPageview('/outgoing/developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for_each...in?referer=');">for each&#8230;in</a> doesn&#8217;t work in Opera/IE/Safari. So avoid it when creating web pages and use for loops instead. In fact, you shouldn&#8217;t even be using it in arrays. oops. (Javascript is special in this way)</li>
<li>While location is defined by most browsers, most let you redefine it in a local scope. Not Opera</li>
<li>$(&#8216;&lt;a&gt;&#8217;) may look correct in jQuery, but it will not work properly in IE. You must close the element tag. So it is $(&#8216;&lt;a /&gt;&#8217;)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tea.cesaroliveira.net/archives/50/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
