<?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>WonderLabs &#187; jQuery</title>
	<atom:link href="http://labs.wondergroup.com/category/frameworks/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.wondergroup.com</link>
	<description></description>
	<lastBuildDate>Fri, 20 Nov 2009 19:31:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Popup Plugin Update</title>
		<link>http://labs.wondergroup.com/frameworks/jquery-popup-plugin-update/</link>
		<comments>http://labs.wondergroup.com/frameworks/jquery-popup-plugin-update/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 14:54:33 +0000</pubDate>
		<dc:creator>jthomas</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=170</guid>
		<description><![CDATA[Just a quick note to bring attention to a small update made to the jQuery Popup plugin posted back in June.
The update addresses a small issue when the plugin was targeted to multiple elements or no elements at all. Updating to this version is recommended as it doesn&#8217;t change any features or break any previously [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to bring attention to a small update made to the <a href="http://labs.wondergroup.com/frameworks/jquery-popup-plugin/">jQuery Popup plugin</a> posted back in June.</p>
<p>The update addresses a small issue when the plugin was targeted to multiple elements or no elements at all. Updating to this version is recommended as it doesn&#8217;t change any features or break any previously existing functionality.</p>
<p>Head <a href="http://labs.wondergroup.com/frameworks/jquery-popup-plugin/">over here</a> to read more about the plugin or go straight to the <a href="http://labs.wondergroup.com/demos/popup/index.html">download page</a> to pick it up.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/frameworks/jquery-popup-plugin-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Mini UI Effects Plugins</title>
		<link>http://labs.wondergroup.com/frameworks/jquery/jquery-mini-ui-effects-plugins/</link>
		<comments>http://labs.wondergroup.com/frameworks/jquery/jquery-mini-ui-effects-plugins/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 15:18:03 +0000</pubDate>
		<dc:creator>jthomas</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=130</guid>
		<description><![CDATA[Recently while working on a client project I was met with a situation in which I needed to do some client-side feedback to validation of a couple fields. I wanted something a little more spiced up than your typical turn-the-field-red or put-a-red-asterisk next to it.
The jQuery UI Effects library had just what I was looking [...]]]></description>
			<content:encoded><![CDATA[<p>Recently while working on a client project I was met with a situation in which I needed to do some client-side feedback to validation of a couple fields. I wanted something a little more spiced up than your typical turn-the-field-red or put-a-red-asterisk next to it.</p>
<p>The <a href="http://jqueryui.com/">jQuery UI</a> <a href="http://jqueryui.com/demos/effect/">Effects</a> library had just what I was looking for, with only one problem. In order to use the desired effect I had to include over 100 kb of additional Javascript. My app was already pretty heavy on the client side so I sought a way to achieve the effect with as little cruft as possible.</p>
<p>So, after a little hacking around, I present the &#8220;Mini&#8221; UI Effects plugins. They are a set of plugins that are lightweight and attempt to offer a similar experience to the jQuery UI effects. For now there are just three basic effects, &#8220;Blink&#8221;, &#8220;Wiggle&#8221; and &#8220;Bob.&#8221; They are similar to the jQuery UI &#8220;Pulsate&#8221;, &#8220;Shake&#8221; and &#8220;Bounce&#8221; effects respectively.</p>
<p>Please feel free to <a href="http://labs.wondergroup.com/demos/mini-ui/index.html">download</a> and use them in your own projects both commercial and personal alike. They have been tested to work in IE6+, Safari and Firefox.</p>
<p>Check out a <a href="http://labs.wondergroup.com/demos/mini-ui/index.html">demo and download the jQuery Mini UI plugins here</a>. Let me encourage you to leave feedback in the comments. We&#8217;d love to hear of any experience using them (bugs or otherwise). Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/frameworks/jquery/jquery-mini-ui-effects-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Popup Plugin</title>
		<link>http://labs.wondergroup.com/frameworks/jquery-popup-plugin/</link>
		<comments>http://labs.wondergroup.com/frameworks/jquery-popup-plugin/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 15:37:23 +0000</pubDate>
		<dc:creator>jthomas</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=103</guid>
		<description><![CDATA[Last week, John showed a technique for enabling a popup anchor to degrade gracefully for users who do not have Javascript enabled. Inspired by his technique, I decided to throw together a jQuery plugin that implements this technique, without having the event attached inline.
It weighs in at just under 1k minified, so it shouldn&#8217;t be [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, John showed a technique for enabling a popup anchor to degrade gracefully for users who do not have Javascript enabled. Inspired by his technique, I decided to throw together a jQuery plugin that implements this technique, without having the event attached inline.</p>
<p>It weighs in at just under 1k minified, so it shouldn&#8217;t be too tough on your page weight. Feel free to <a href="http://labs.wondergroup.com/demos/popup/index.html">download it</a> and use it for any kind of project.</p>
<h4>Usage</h4>
<p>Include the plugin as you would any jQuery plugin (where &#8220;/path/to/file&#8221; is specific to your instance).</p>
<pre name="code" class="javascript">
<script type="text/javascript" charset="utf-8" src="/path/to/file/jquery.popup.min.js"></script>
</pre>
<p>Next, put the HTML markup in place (of course the href, target and class can be what you want):</p>
<pre name="code" class="javascript">
<a href="http://google.com" target="new" class="popup-link">Open Google in a new window.</a>
</pre>
<p>Then, just call popup() on the desired elements:</p>
<pre name="code" class="javascript">
$(".popup-link").popup();
</pre>
<p>Additionally, you can provide the desired size of the popup window like so:</p>
<pre name="code" class="javascript">
$(".popup-link").popup({
    width: 320,
    height: 240
});
</pre>
<p><a href="http://labs.wondergroup.com/demos/popup/index.html">Download it here.</a></p>
<h4>Update</h4>
<p>We have posted a new version of the plugin that addresses a small bug. The download link above takes you to the demo/download page which contains the new version. Read more about it on <a href="http://labs.wondergroup.com/frameworks/jquery-popup-plugin-update/">this page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/frameworks/jquery-popup-plugin/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Basic jQuery Plugin Structure</title>
		<link>http://labs.wondergroup.com/frameworks/basic-jquery-plugin-structure/</link>
		<comments>http://labs.wondergroup.com/frameworks/basic-jquery-plugin-structure/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 15:37:04 +0000</pubDate>
		<dc:creator>jthomas</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=76</guid>
		<description><![CDATA[As I am sure everyone is aware by now, jQuery provides a fantastic interface for developing plugins. Here I&#8217;ll share the the typical jQuery plugin structure as well as some best practices.
First, we need to define the plugin, we will call ours &#8220;colorize&#8221;&#8230; pretty simple. You&#8217;ll want to use the full &#8220;jQuery&#8221; function call throughout [...]]]></description>
			<content:encoded><![CDATA[<p>As I am sure everyone is aware by now, <a href="http://jquery.com">jQuery</a> provides a fantastic interface for developing plugins. Here I&#8217;ll share the the typical jQuery plugin structure as well as some best practices.</p>
<p>First, we need to define the plugin, we will call ours &#8220;colorize&#8221;&#8230; pretty simple. You&#8217;ll want to use the full &#8220;jQuery&#8221; function call throughout the plugin, as opposed to the &#8220;$&#8221; alias in the event this plugin gets used in a situation that alias has changed. In short, $ = bad.</p>
<pre class="javascript" name="code">jQuery.fn.colorize = function()</pre>
<p>That gives us the ability to do something like:</p>
<pre class="javascript" name="code">$("#selector").colorize();</pre>
<p>Next, we should come up with some sensible default settings for our plugin while also providing a way for users to provide their own settings.</p>
<pre class="javascript" name="code">jQuery.fn.colorize = function(options) {
    var defaults = {
        textColor: "green"
    };
    var options = jQuery.extend(defaults, options);
};</pre>
<p>Now, we have one option, &#8220;textColor&#8221;, in our plugin, which defaults to green. We make use of jQuery&#8217;s extend() function to smash the two objects (options and defaults) together. So, usage of our plugin looks like this:</p>
<pre class="javascript" name="code">$("#selector").colorize({
    textColor: "red"
});</pre>
<p>By calling our plugin in this manner, we override the default &#8220;green&#8221; setting with &#8220;red&#8221;. Next, let&#8217;s add some code so our plugin actually does something. All we&#8217;re going to do is apply the CSS property &#8220;color&#8221; to the selected element. Note that inside a plugin &#8220;this&#8221; assumes the role of the selected element.</p>
<pre class="javascript" name="code">    $(this).css({
        color: options.textColor
    });</pre>
<p>Now, admittedly this plugin is awful in terms of provided functionality. But, at least it does something now. One last tidbit that&#8217;s important to include, though.</p>
<pre class="javascript" name="code">return this;</pre>
<p>It is important to return <em>this</em> if at all possible so as to maintain the chaining ability of jQuery. For example, our plugin supports chaining so we can do this:</p>
<pre class="javascript" name="code">$("#selector").colorize({textColor: "blue"}).show(500);</pre>
<h3>Done.</h3>
<p>So, all put together we&#8217;ve got something that should look like this:</p>
<pre class="javascript" name="code">jQuery.fn.colorize = function(options) {
    var defaults = {
        textColor: "green"
    };
    var options = jQuery.extend(defaults, options);

    jQuery(this).css({
        color: options.textColor
    });

    return this;
};</pre>
<p>That concludes the basics for jQuery plugin authoring. For more information you can always check out the awesome-packed <a href="http://docs.jquery.com">jQuery documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/frameworks/basic-jquery-plugin-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Cheat Sheet</title>
		<link>http://labs.wondergroup.com/languages/javascript/jquery-cheat-sheet/</link>
		<comments>http://labs.wondergroup.com/languages/javascript/jquery-cheat-sheet/#comments</comments>
		<pubDate>Thu, 21 May 2009 20:05:51 +0000</pubDate>
		<dc:creator>jberman</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://labs.wondergroup.com/?p=21</guid>
		<description><![CDATA[Saw this recently, found it useful, figured I&#8217;d share it. I&#8217;m still getting comfortable with all that JQuery has to offer and having a quick reference definitely helps. Enjoy!
http://nettuts.s3.amazonaws.com/154_cheatsheet/jquery12_colorcharge.png
]]></description>
			<content:encoded><![CDATA[<p>Saw this recently, found it useful, figured I&#8217;d share it. I&#8217;m still getting comfortable with all that JQuery has to offer and having a quick reference definitely helps. Enjoy!</p>
<p><a href="http://nettuts.s3.amazonaws.com/154_cheatsheet/jquery12_colorcharge.png">http://nettuts.s3.amazonaws.com/154_cheatsheet/jquery12_colorcharge.png</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.wondergroup.com/languages/javascript/jquery-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

