<?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>Kenmore Design Blog &#187; client side web applications</title>
	<atom:link href="http://blog.kenmoredesign.com/tag/client-side-web-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kenmoredesign.com</link>
	<description>Professional Web Design</description>
	<lastBuildDate>Fri, 21 May 2010 16:29:19 +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>Useful jQuery snippets</title>
		<link>http://blog.kenmoredesign.com/2009/02/02/useful-jquery-snippets/</link>
		<comments>http://blog.kenmoredesign.com/2009/02/02/useful-jquery-snippets/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 03:10:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[client side web applications]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery snippets]]></category>

		<guid isPermaLink="false">http://blog.kenmoredesign.com/?p=132</guid>
		<description><![CDATA[For those who don&#8217;t know snippets a small and handy pieces of code that is always helpful to have by your side instead of rewriting or search in Internet or in your brain&#8230; The second one is especially hard.
Alright, let&#8217;s go:
1. Smooth color change

Very cool thing, you got to install Colour Animation plugin and code:
$(document).ready( [...]]]></description>
			<content:encoded><![CDATA[<p>For those who don&#8217;t know snippets a small and handy pieces of code that is always helpful to have by your side instead of rewriting or search in Internet or in your brain&#8230; The second one is especially hard.</p>
<p>Alright, let&#8217;s go:</p>
<h3>1. Smooth color change</h3>
<p><span id="more-132"></span></p>
<p>Very cool thing, you got to install Colour Animation plugin and code:</p>
<p>$(document).ready( function() {<br />
$(&#8220;.mainMenu a, .articleTitle a&#8221;).mouseover( function() {<br />
$(this).animate({color: &#8220;#cc4e4e&#8221;}, {queue:false, duration:250 });<br />
}).mouseout( function() {<br />
$(this).animate({color: &#8220;#0e8db7&#8243;}, { queue:false, duration:350});<br />
});</p>
<p>});</p>
<h3>2. Check all checkboxes of certain object</h3>
<p>// context = id of the element checkboxes inside of which we need selected<br />
function checkall(context){<br />
$(&#8220;#&#8221;+context).find(&#8220;input[@type$='checkbox']&#8220;).each(function(){<br />
this.checked = checked;<br />
});<br />
}</p>
<h3>3. The amount of elements selected</h3>
<p>$(&#8216;element&#8217;).size();</p>
<h3>4. Radiobutton status</h3>
<p>var var_name = $(&#8220;input[@name='radio_name']:checked&#8221;).val();</p>
<h3>5. Class switch</h3>
<p>$.fn.swapClass = function(c1, c2){<br />
return this.each(function(){<br />
var t = $(this);<br />
(!t.is(&#8216;.&#8217;+c1)) ?<br />
t.addClass(c1).removeClass(c2) : t.addClass(c2).removeClass(c1);<br />
});<br />
}</p>
<p>or shorter:</p>
<p>$(&#8216;#element&#8217;).toggleClass(&#8217;selected&#8217;);</p>
<h3>6. Check for window size change</h3>
<p>function doSomething() {<br />
alert(&#8220;I finished changing the window size&#8221;);<br />
};</p>
<p>var resizeTimer = null;<br />
$(window).bind(&#8216;resize&#8217;, function() {<br />
if (resizeTimer) clearTimeout(resizeTimer);<br />
resizeTimer = setTimeout(doSomething, 100);<br />
});</p>
<p>Well so far this is all I got. If you guys have any snippets you wouldn&#8217;t mind sharing, please submit them below! Snippet topic is limited by client-side web applications (JS, CSS, HTML)</p>
<p>Have a great day!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kenmoredesign.com/2009/02/02/useful-jquery-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
