<?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>Ounce of Talent &#187; Uncategorized</title>
	<atom:link href="http://ounceoftalent.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://ounceoftalent.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 24 Aug 2010 21:12:38 +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>Hide a div when you click outside of it using jQuery</title>
		<link>http://ounceoftalent.com/2009/12/hide-a-div-when-you-click-outside-of-it-using-jquery/</link>
		<comments>http://ounceoftalent.com/2009/12/hide-a-div-when-you-click-outside-of-it-using-jquery/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 14:45:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ounceoftalent.com/?p=220</guid>
		<description><![CDATA[I found this sweet little jQuery tip while working on a project the other day.
My Scenario
I was building out a jQuery calendar that would let users add information to the calendar via a popup div that displays when any day is clicked. Sticking with standard calendar UI, I wanted there to be three ways to [...]]]></description>
			<content:encoded><![CDATA[<p>I found this sweet little <a href="http://stackoverflow.com/questions/1403615/use-jquery-to-hide-div-when-click-outside-it">jQuery tip</a> while working on a project the other day.</p>
<p><strong>My Scenario</strong></p>
<p>I was building out a jQuery calendar that would let users add information to the calendar via a popup div that displays when any day is clicked. Sticking with standard calendar UI, I wanted there to be three ways to dismiss the popup:</p>
<ol>
<li>clicking &#8220;close&#8221; on the popup itself</li>
<li>clicking on another day, which would hide the current popup and display a new one on the day clicked</li>
<li>clicking anywhere off of the calendar</li>
</ol>
<p>The first two were simple enough, but I wasn&#8217;t sure what the best way to handle the third was. The jQuery tip suggested something along the lines of this:</p>
<pre class="brush: js">
var mouse_is_inside = false;

$(document).ready(function()
{
    $('#calendar').hover(function(){
        mouse_is_inside=true;
    }, function(){
        mouse_is_inside=false;
    });

    $(body).mouseup(function(){
        if(!mouse_is_inside) $('.event-popup').hide();
    });
});
</pre>
<p>Nothing too complicated here. The first portion sets up a variable that will let us store a true/false value and then sets that variable to true when the mouse is hovering on top of the calendar. For our purposes this is the equivalent to saying that the cursor is &#8220;inside&#8221; the calendar; which is what we want to know. If the mouse is not &#8220;inside&#8221; the calendar, we set the variable to false.</p>
<pre class="brush: js">
$(body).mouseup(function(){
        if(!mouse_is_inside) $('.event-popup').hide();
    });
</pre>
<p>This next bit of code fires on the mouseup event (this can fire on any event obviously). Now we have a conditional that checks if our mouse_is_inside variable is true and if so, it hides the popup event. Nothing crazy, but a simple solution if you ever need this functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://ounceoftalent.com/2009/12/hide-a-div-when-you-click-outside-of-it-using-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Set Gmail As Your Default Email Client</title>
		<link>http://ounceoftalent.com/2009/09/set-gmail-as-your-default-email-client/</link>
		<comments>http://ounceoftalent.com/2009/09/set-gmail-as-your-default-email-client/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 14:38:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ounceoftalent.com/?p=130</guid>
		<description><![CDATA[Ok. I&#8217;m a little late on this one, but this is an awesome time-saving trick! Typically when I click on mailto links, it attempts to launch Windows Mail, which I don&#8217;t even have setup. So I got in the habit of just copying mailto links, opening up a new tab with Gmail and then pasting [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. I&#8217;m a little late on this one, but this is an awesome time-saving trick! Typically when I click on <em>mailto</em> links, it attempts to launch Windows Mail, which I don&#8217;t even have setup. So I got in the habit of just copying <em>mailto</em> links, opening up a new tab with Gmail and then pasting the email address. Well, no more. I just followed this super easy tutorial and now I&#8217;m opening all my <em>mailto</em> links directly in Gmail with the <em>to:</em> address already filled in. You too can wield this power; check it out!</p>
<p><a title="Set Gmail As Your Default Email Client" href="http://digiwanderlust.blogspot.com/2008/05/firefox-3-gmail-web-mail-handler-bug.html" target="_self">http://digiwanderlust.blogspot.com/2008/05/firefox-3-gmail-web-mail-handler-bug.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ounceoftalent.com/2009/09/set-gmail-as-your-default-email-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Site Live!</title>
		<link>http://ounceoftalent.com/2009/09/new-site-live/</link>
		<comments>http://ounceoftalent.com/2009/09/new-site-live/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:53:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://projects.ounceoftalent.com/ounce/?p=126</guid>
		<description><![CDATA[Welcome to OunceofTalent.com! I&#8217;ve been working with Wordpress for several years and recently I have begun to work almost exclusively on the Wordpress platform (besides Magento, of course). I&#8217;d love some feedback on the the new site but do me a favor and ignore all of the posts before this one. Thanks!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to OunceofTalent.com! I&#8217;ve been working with Wordpress for several years and recently I have begun to work almost exclusively on the Wordpress platform (besides Magento, of course). I&#8217;d love some feedback on the the new site but do me a favor and ignore all of the posts before this one. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://ounceoftalent.com/2009/09/new-site-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

