<?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>Winn.ws &#187; jQuery</title>
	<atom:link href="http://winn.ws/archives/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://winn.ws</link>
	<description>Standards-based design &#38; development</description>
	<lastBuildDate>Thu, 09 Sep 2010 14:05:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Loading content with JQuery</title>
		<link>http://winn.ws/archives/224</link>
		<comments>http://winn.ws/archives/224#comments</comments>
		<pubDate>Mon, 30 Mar 2009 19:14:34 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=224</guid>
		<description><![CDATA[Loading content via Ajax is quick and easy with JQuery. If you have never used jQuery before you might think twice about it!
Below is my html where we will load the content.

1
&#60;div id=&#34;LoadContent&#34;&#62;&#60;/div&#62;

Now lets look at the javascript needed to load a remote page in.

1
$&#40;&#34;#LoadContent&#34;&#41;.load&#40;&#34;path/to/remote/file.php&#34;&#41;;

After that is called the contents of &#8220;file.php&#8221; would be loaded [...]]]></description>
			<content:encoded><![CDATA[<p>Loading content via Ajax is quick and easy with JQuery. If you have never used jQuery before you might think twice about it!</p>
<p>Below is my html where we will load the content.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strct" style="font-family:monospace;">&lt;div id=&quot;LoadContent&quot;&gt;&lt;/div&gt;</pre></td></tr></table></div>

<p>Now lets look at the javascript needed to load a remote page in.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#LoadContent&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;path/to/remote/file.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>After that is called the contents of &#8220;file.php&#8221; would be loaded into the div above! Quick and easy way to include item into your app. You may also pass variables to the page like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#LoadContent&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;path/to/remote/file.php&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>id<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> <span style="color: #000066;">name</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Greg&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Hope this small tool helps change your mind about JQuery!</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browser detection using jQuery</title>
		<link>http://winn.ws/archives/199</link>
		<comments>http://winn.ws/archives/199#comments</comments>
		<pubDate>Tue, 10 Feb 2009 17:31:05 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=199</guid>
		<description><![CDATA[Browser sniffing is messy. There are a million ways to do it but none of them are particularly clean and most involve conditional statements such as &#8220;&#8221; for IE and various other CSS selector hacks for other browsers.
It get around this common issue i am now using jQuery to add a class to my body [...]]]></description>
			<content:encoded><![CDATA[<p>Browser sniffing is messy. There are a million ways to do it but none of them are particularly clean and most involve conditional statements such as &#8220;<!--[if condition]> HTML <![endif]-->&#8221; for IE and various other CSS selector hacks for other browsers.</p>
<p>It get around this common issue i am now using jQuery to add a class to my body tag.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">browser</span>.<span style="color: #660066;">msie</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'browserIE'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">// Add the version number</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'browserIE'</span> <span style="color: #339933;">+</span> $.<span style="color: #660066;">browser</span>.<span style="color: #660066;">version</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>If the user is using IE it will add a class to teh body tag like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;browserIE browserIE#&quot;</span>&gt;</span></pre></td></tr></table></div>

<blockquote><p>The &#8220;#&#8221; stands for the version of IE the user is running.</p></blockquote>
<p>You can now access elements on your page that neeed to be corrected for IE by calling:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.browserIE6</span> <span style="color: #cc00cc;">#myDiv</span> <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>This will work much better then current hacks. Hope that helps someone!!</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/199/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cookies with JQuery</title>
		<link>http://winn.ws/archives/196</link>
		<comments>http://winn.ws/archives/196#comments</comments>
		<pubDate>Tue, 10 Feb 2009 05:16:32 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=196</guid>
		<description><![CDATA[So in some of my latest projects i dont have full source access, so i need to look for cookies the main application is setting. To do this i am using jQuery to look into the cookies and give me the value. Once i know the value i can then write a new cookie that [...]]]></description>
			<content:encoded><![CDATA[<p>So in some of my latest projects i dont have full source access, so i need to look for cookies the main application is setting. To do this i am using jQuery to look into the cookies and give me the value. Once i know the value i can then write a new cookie that the main application will see and use.</p>
<p>Below is an idea of what i am doing to read the cookies from the main application.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Cookie_name'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #003366; font-weight: bold;">var</span> MainAppCookie <span style="color: #339933;">=</span> $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Cookie_name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'NewCookie_'</span> <span style="color: #339933;">+</span> MainAppCookie <span style="color: #339933;">,</span> <span style="color: #3366CC;">'Value'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>To use the $.cookie i am using a simple plugin for jQuery. This allows me to access the cookies quick and easy. Now if the application gives me a special cookie i can then delete my old ones by doing this&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Cookie_name'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'Special Text'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'MyCookie'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// This will delete the cookie</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/196/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery to Ship with Visual Studio</title>
		<link>http://winn.ws/archives/163</link>
		<comments>http://winn.ws/archives/163#comments</comments>
		<pubDate>Wed, 01 Oct 2008 16:18:44 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[.NET 3.5 VB]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.winn.ws/?p=163</guid>
		<description><![CDATA[Microsoft will now be adopting jQuery for all it&#8217;s Ajax tools and any javascript related items. This is a big win for jQuery!
We have two pieces of fantastic, albeit serendipitous, news today: Both Microsoft and Nokia are taking the major step of adopting jQuery as part of their official application development platform. Not only will [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft will now be adopting jQuery for all it&#8217;s Ajax tools and any javascript related items. This is a big win for jQuery!</p>
<blockquote><p>We have two pieces of fantastic, albeit serendipitous, news today: Both Microsoft and Nokia are taking the major step of adopting jQuery as part of their official application development platform. Not only will they be using it for their corporate development but they will be providing it as a core piece of their platform for developers to build with&#8230;</p></blockquote>
<p><a href="http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/">Read more of this at the jQuery Blog&gt;&gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/163/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/10 queries in 0.002 seconds using memcached
Content Delivery Network via Amazon Web Services: CloudFront: dhbbuddo7esu2.cloudfront.net

Served from: winn.ws @ 2010-09-09 21:34:45 -->