<?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>Tony Lea</title>
	<atom:link href="http://www.tonylea.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tonylea.com</link>
	<description>Programming &#124; Tutorials &#124; Reviews and How-To&#039;s</description>
	<lastBuildDate>Fri, 06 Apr 2012 05:31:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery Masonry &#8211; creating better looking layouts</title>
		<link>http://www.tonylea.com/2012/jquery-masonry-creating-better-looking-layouts/</link>
		<comments>http://www.tonylea.com/2012/jquery-masonry-creating-better-looking-layouts/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 05:31:51 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2525</guid>
		<description><![CDATA[If you haven&#8217;t checked out the awesomeness that is &#8216;jQuery Masonry&#8217;, I would politely ask you where you&#8217;ve been for the past year. Actually, I would direct you over to the jQuery Masonry website (http://masonry.desandro.com/). Typically when you view a grid of content on a website it looks sort of like a checkerboard of images [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t checked out the awesomeness that is &#8216;jQuery Masonry&#8217;, I would politely ask you where you&#8217;ve been for the past year. Actually, I would direct you over to the <a href="http://masonry.desandro.com/" target="_blank">jQuery Masonry</a> website (<a href="http://masonry.desandro.com/" target="_blank">http://masonry.desandro.com/</a>).</p>
<p>Typically when you view a grid of content on a website it looks sort of like a checkerboard of images or perhaps the widths for some are smaller or larger. Well, with jQuery Masonry instead of having dynamic widths in your grid-layout you can display your content with dynamic heights.</p>
<p style="text-align: center;"><a href="http://masonry.desandro.com/index.html"><img class="aligncenter size-full wp-image-2526" style="padding: 2px; border: 1px solid #ccc;" title="jquery-masonry-screenshot" src="http://www.tonylea.com/wp-content/uploads/2012/04/jquery-masonry-screenshot.png" alt="" width="630" height="354" /></a></p>
<p style="text-align: left;">There are many popular sites using this layout style including one of the latest crazed sites <a href="http://pinterest.com/" target="_blank">Pinterest</a>. I tried checking their code to see if they were using the actual jQuery Masonry plug-in and could not find it, but they are using it (or something similar).</p>
<p style="text-align: left;">Another growingly popular site that makes use of jQuery Masonry is <a href="http://yardsellr.com/" target="_blank">Yardsellr.com</a> (I&#8217;m currently in love and having a lot of fun with this site).</p>
<p>Making use of the jQuery Masonry plug-in on your website is very simple. You&#8217;ll have to head on over to their demo pages and have a look: <a href="http://masonry.desandro.com/demos/basic-single-column.html" target="_blank">http://masonry.desandro.com/demos/basic-single-column.html</a>. Perhaps, in the future I will do a screencast or another post explaining how to use this plug-in in-depth.</p>
<p>A few other great examples of sites that use this plug-in are:</p>
<ul>
<li><a href="http://www.cutestpaw.com/" target="_blank">CutestPaw</a></li>
<li><a href="http://chromeography.com/" target="_blank">Chromeography</a></li>
<li><a href="http://fab.com/feed/" target="_blank">Fab</a></li>
</ul>
<p>And one more of one of my personal sites at:</p>
<p><a href="http://www.iheartfunny.com" target="_blank">iHeartFunny</a> (<a href="http://www.iheartfunny.com" target="_blank">http://www.iheartfunny.com</a>)</p>
<p>Make sure if you ever have a content site and you want to display images or content in a beautiful fashion, you&#8217;ll head over to <a href="http://masonry.desandro.com/" target="_blank">jQuery Masonry</a> and make use of this excellent plug-in.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/jquery-masonry-creating-better-looking-layouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Excellent Tools for Finding the Perfect Domain</title>
		<link>http://www.tonylea.com/2012/5-excellent-tools-for-finding-the-perfect-domain/</link>
		<comments>http://www.tonylea.com/2012/5-excellent-tools-for-finding-the-perfect-domain/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 06:10:16 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2497</guid>
		<description><![CDATA[Doesn't it seem like all the good '.com' domains are taken? I love coming up with new ideas, but when it comes to finding a domain name it becomes impossible to find an available domain that fits the shoes of my new website. Shouldn't finding a domain name be fun? Like coming up with a name for your new pet. This little fluffy guy will be called Sergeant Fuzzy Boots!]]></description>
			<content:encoded><![CDATA[<p>Doesn&#8217;t it seem like all the good &#8216;.com&#8217; domains are taken? I love coming up with new ideas, but when it comes to finding a new domain name it becomes impossible to find an available domain that fits the shoes for my new website project.</p>
<p>Shouldn&#8217;t finding a domain name be fun? Like coming up with a name for your new pet. This little fluffy guy will be called Sergeant Fuzzy Boots! (<a style="color: #0098cb;" href="http://www.cbs.com/shows/big_bang_theory/" target="_blank">Big Bang Theory</a> reference).</p>
<p>Anyway, luckily enough I have rounded up the top 5 domain name tools that will bring the fun back into naming your little project, here they are below, in no particular order:</p>
<h2>1. <a style="color: #0098cb;" href="http://impossibility.org/" target="_blank">impossiblity.org</a></h2>
<p style="text-align: center;"><a href="http://impossibility.org/" target="_blank"><img class="aligncenter size-full wp-image-2501" style="padding: 2px; border: 1px solid #ccc;" title="excellent-domain-tools-impossibility" src="http://www.tonylea.com/wp-content/uploads/2012/04/excellent-domain-tools-impossibility1.png" alt="" width="630" height="300" /></a></p>
<p style="text-align: left;">With <a href="http://impossibility.org/" target="_blank">impossibility.org</a> you can easily type in a word and then choose to have an adjective, verb, or noun before or after your word and the system will find those available domain names. You can choose to have a 4, 5, or 6 letter adjective, verb, or noun; so, you can be sure that your domain name is as short as possible. This is definitely a useful and fun tool for finding domain names. Finding the right domain with this tool is a definite possibility <img src='http://www.tonylea.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>2. <a style="color: #0098cb;" href="http://www.panabee.com/" target="_blank">Panabee.com</a></h2>
<p style="text-align: center;"><a href="http://www.panabee.com/"><img class="aligncenter size-full wp-image-2503" style="border: 1px solid #ccc; padding: 2px;" title="excellent-domain-tools-panabee" src="http://www.tonylea.com/wp-content/uploads/2012/04/excellent-domain-tools-panabee.png" alt="" width="630" height="300" /></a></p>
<p><a href="http://www.panabee.com/" target="_blank">Panabee</a> is also another amazing tool for helping you find the right domain for the right project. Using <a href="http://www.panabee.com/" target="_blank">Panabee.com</a> you can simply enter in a combination of words or any domain name you had your heart set on and the system will come up with similar and suggested names. <a href="http://www.panabee.com/" target="_blank">Panabee</a> uses some common tactics to come up with an available domain name by putting words like &#8216;get&#8217; at the beginning or &#8216;pro&#8217; at the end. This tool definitely makes shopping for the right domain an enjoyable experience.</p>
<h2>3. <a style="color: #0098cb;" href="http://www.panabee.com/" target="_blank">DomainTyper.com</a></h2>
<p style="text-align: center;"><a href="http://domaintyper.com/"><img class="aligncenter size-full wp-image-2504" style="padding: 2px; border: 1px solid #ccc;" title="excellent-domain-tools-domain-typer" src="http://www.tonylea.com/wp-content/uploads/2012/04/excellent-domain-tools-domain-typer.png" alt="" width="630" height="300" /></a></p>
<p style="text-align: left;">The thing that is great about <a href="http://domaintyper.com/" target="_blank">DomainTyper</a>, is that you can see which domains are available as you type. With every letter entered into the domain search box you will see the availability of that domain in real-time. There&#8217;s no need to hit &#8216;Search&#8217; or &#8216;Check Availability&#8217;, because this tool will let you know just as fast as you can type. Another great thing about <a href="http://domaintyper.com/" target="_blank">DomainTyper</a> is their Domain Name Generator which happens in real-time as well. So when you are searching for a desired domain their &#8216;Domain Name Generator&#8217; will create some similar or suggested domains. DomainTyper will let you know if the domain you&#8217;re thinking of is available even before you think it… Well not that fast, it can&#8217;t read your mind, but it&#8217;s kind of close.</p>
<h2>4. <a style="color: #0098cb;" href="http://www.domainsbot.com" target="_blank">DomainsBot.com</a></h2>
<p style="text-align: center;"><a href="http://www.domainsbot.com"><img class="aligncenter size-full wp-image-2505" style="padding: 2px; border: 1px solid #ccc;" title="excellent-domain-tools-domains-bot" src="http://www.tonylea.com/wp-content/uploads/2012/04/excellent-domain-tools-domains-bot.png" alt="" width="630" height="300" /></a></p>
<p style="text-align: left;"><a href="http://www.domainsbot.com" target="_blank">DomainsBot</a> has all the great features as many of the previous tools. It is super quick to help you find the domain you are trying to find. <a href="http://www.domainsbot.com" target="_blank">DomainsBot</a> creates a long list of domains for you to sift through, based off of your desired domain DomainsBot will display suggested or similar domain names. <a href="http://www.domainsbot.com" target="_blank">DomainsBot</a> will also show you some premium domains that you can purchase for a price, usually it&#8217;s not too expensive it just depends on the quality of the domain and how much you&#8217;re willing to pay for it. Be sure to keep <a href="http://www.domainsbot.com" target="_blank">DomainsBot</a> in your list of domain tools to cover when you are searching for that perfect domain.</p>
<h2>5. <a style="color: #0098cb;" href="http://www.domize.com" target="_blank">Domize.com</a></h2>
<p style="text-align: center;"><a href="http://www.domize.com"><img class="aligncenter size-full wp-image-2506" style="border: 1px solid #ccc; padding: 2px;" title="excellent-domain-tools-domize" src="http://www.tonylea.com/wp-content/uploads/2012/04/excellent-domain-tools-domize.png" alt="" width="630" height="300" /></a></p>
<p style="text-align: left;"><a href="http://www.domize.com" target="_blank">Domize</a> is great for quickly showing you which domains are available. Similar to &#8216;DomainTyper&#8217;, <a href="http://www.domize.com" target="_blank">Domize.com</a> lets you know if the domain is available just as fast as you can type. One great thing about <a href="http://www.domize.com" target="_blank">Domize</a> is that it will save all of the &#8216;.com&#8217; names that are available so you can go back and look at all the available &#8216;.com&#8217; domains you entered. <a href="http://www.domize.com" target="_blank">Domize</a> is great for popping in and quickly checking the availability of any domain.</p>
<p>There you have it!</p>
<p>The greatest round-up to help you find the Domain Name you&#8217;ve always wanted.</p>
<p>Hope this helps you find the perfect domain for your future project!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/5-excellent-tools-for-finding-the-perfect-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to detect radio box change with jQuery</title>
		<link>http://www.tonylea.com/2012/how-to-detect-radio-box-change-with-jquery/</link>
		<comments>http://www.tonylea.com/2012/how-to-detect-radio-box-change-with-jquery/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 03:16:43 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery radio box]]></category>
		<category><![CDATA[jquery radio button]]></category>
		<category><![CDATA[radio box jquery]]></category>
		<category><![CDATA[radio boxes]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2490</guid>
		<description><![CDATA[I&#8217;m constantly finding myself searching Google when I need to find out how to detect when a radio box has been changed using jQuery, and sometimes I have to search down a couple results til I finally find one that works. So, since this may come up again in the future, I have just decided [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m constantly finding myself searching Google when I need to find out how to detect when a radio box has been changed using jQuery, and sometimes I have to search down a couple results til I finally find one that works. So, since this may come up again in the future, I have just decided to write a quick post about this topic.</p>
<p>Finding out when the radio box has been changed with jQuery is very easy, say you have a form inside your html that looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_radio_box&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_options&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option 1&quot;</span> <span style="color: #339933;">/&gt;</span> Option <span style="color: #cc66cc;">1</span>
    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_options&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option 2&quot;</span> <span style="color: #339933;">/&gt;</span> Option <span style="color: #cc66cc;">2</span>
    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_options&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option 3&quot;</span> <span style="color: #339933;">/&gt;</span> Option <span style="color: #cc66cc;">3</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Now, to detect when that radio box is changed, you can easily call the jQuery &#8216;change&#8217; event inside your jQuery document ready function:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#my_radio_box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">change</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Radio Box has been changed!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>In the above example when the radio box has been changed an alert is displayed. Now, in order to get the value of the currently selected radio box we can simply save the value in a variable:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    selected_value <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input[name='my_options']:checked&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>And, of course this has to be called inside of the jQuery &#8216;change&#8217; function. <small>Quick note: you&#8217;ll need to make sure to include the jQuery library somewhere above this code.</small> So far the whole javascript functionality should look as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">    $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#my_radio_box'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">change</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            selected_value <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;input[name='my_options']:checked&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>There you go the selected value is stored inside of the &#8216;selected_value&#8217; variable, you can feel free to do whatever you&#8217;d like from here. As an example, I&#8217;m going to alert the value to the screen.</p>
<h2><a href="http://www.tonylea.com/go/examples/radio-box-change-with-jquery/" target="_blank" style="color:#0098cb">Checkout The Simple Demo Here</a></h2>
<p>And the following is the code for the example above:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE HTML <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #0000ff;">&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;</span> <span style="color: #0000ff;">&quot;http://www.w3.org/TR/html4/loose.dtd&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
				$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
					$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#my_radio_box'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>change<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						selected_value <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;input[name='my_options']:checked&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>val<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			            alert<span style="color: #009900;">&#40;</span>selected_value<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
	<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>Detecting a Radio Box Change and getting the Value in jQuery<span style="color: #339933;">:&lt;/</span>h2<span style="color: #339933;">&gt;</span>	
		<span style="color: #339933;">&lt;</span>form id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_radio_box&quot;</span><span style="color: #339933;">&gt;</span>
		    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_options&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option 1&quot;</span> checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span> <span style="color: #339933;">/&gt;</span> Option <span style="color: #cc66cc;">1</span>
		    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_options&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option 2&quot;</span> <span style="color: #339933;">/&gt;</span> Option <span style="color: #cc66cc;">2</span>
		    <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;my_options&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;option 3&quot;</span> <span style="color: #339933;">/&gt;</span> Option <span style="color: #cc66cc;">3</span>
		<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/how-to-detect-radio-box-change-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to talk to the parent page from an iframe</title>
		<link>http://www.tonylea.com/2012/how-to-talk-to-the-parent-page-from-an-iframe/</link>
		<comments>http://www.tonylea.com/2012/how-to-talk-to-the-parent-page-from-an-iframe/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 05:35:51 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2475</guid>
		<description><![CDATA[Somtimes you need a way to communicate with an iframe. Talking directly to the iframe can be done by sending parameters via the src URL, but what if you need a simple way to pass something from an iframe to the parent page? Well, the simplest way to do this would be to call a [...]]]></description>
			<content:encoded><![CDATA[<p>Somtimes you need a way to communicate with an iframe. Talking directly to the iframe can be done by sending parameters via the src URL, but what if you need a simple way to pass something from an iframe to the parent page? Well, the simplest way to do this would be to call a javascript function that lives in the parent page. To access the parent page, you will use the &#8216;parent&#8217; object inside javascript of your iframe.</p>
<p>As an example, here is what your parent page might look like</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    function alert_me(string)
    {
          alert(string);
    }
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;iframe src=&quot;my_iframe.html&quot;&gt;&lt;/iframe&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Now, inside of your iframe html, you could simply do the following to call the parent function within your iframe (my_iframe.html):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">    &lt;script type=&quot;text/javascript&quot;&gt;
        parent.alert_me('hello there!');
    &lt;/script&gt;</pre></div></div>

<p>Now, when the iframe is called it will call the parent function &#8216;alert_me&#8217;, additionally you can feel free to have the parent function called during an event, like a button click or even a key press. Anyway, it&#8217;s very simple, hope someone can find this useful <img src='http://www.tonylea.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/how-to-talk-to-the-parent-page-from-an-iframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Have you seen Vimeo&#8217;s New Look?</title>
		<link>http://www.tonylea.com/2012/have-you-seen-vimeos-new-look/</link>
		<comments>http://www.tonylea.com/2012/have-you-seen-vimeos-new-look/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 21:27:48 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2465</guid>
		<description><![CDATA[Apparently Vimeo&#8217;s new look has been around for well over a month now; however, I didn&#8217;t find out about the change until just this morning. I guess that means I need to log-in to my Vimeo account more often. Anyways, this is the first big re-model of the popular Vimeo interface. I&#8217;ve noticed they have [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.tonylea.com/wp-content/uploads/2012/03/new-vimeo-look.png"><img class="aligncenter size-full wp-image-2466" style="padding: 2px; border: 1px solid #ccc;" title="new-vimeo-look" src="http://www.tonylea.com/wp-content/uploads/2012/03/new-vimeo-look.png" alt="" width="630" height="93" /></a></p>
<p style="text-align: left;">Apparently Vimeo&#8217;s new look has been around for well over a month now; however, I didn&#8217;t find out about the change until just this morning. I guess that means I need to log-in to my Vimeo account more often. Anyways, this is the first big re-model of the popular Vimeo interface. I&#8217;ve noticed they have implemented infinite scroll on their video pages which is pretty nice. So far it looks very straight forward and clean, but I&#8217;ll have to do a little more snooping around before I make a final judgement of their new look.</p>
<p>Check out the official New Vimeo Look video below:</p>
<p><iframe src="http://player.vimeo.com/video/35514005?portrait=0" frameborder="0" width="630" height="354"></iframe></p>
<p>And if you haven&#8217;t seen it yet, head on over to <a href="http://www.vimeo.com" target="_blank">Vimeo</a>, log-in and take a look <img src='http://www.tonylea.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/have-you-seen-vimeos-new-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infinite Scroll Loading Image and Text</title>
		<link>http://www.tonylea.com/2012/infinite-scroll-loading-image-and-text/</link>
		<comments>http://www.tonylea.com/2012/infinite-scroll-loading-image-and-text/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 00:21:31 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2457</guid>
		<description><![CDATA[So, many of you may have heard about the amazing jquery plug-in called &#8216;Infinite-Scroll&#8217;. If you haven&#8217;t you need to check it out here. Anyway, when I was trying to incorporate this plug-in to my site, it was very easy; however, I could not for the life of me figure out how come the loading [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.tonylea.com/wp-content/uploads/2012/03/infinite-scroll.jpg" alt="" title="infinite-scroll" width="365" height="180" class="alignright size-full wp-image-2458" style="margin-left:30px" />So, many of you may have heard about the amazing jquery plug-in called &#8216;Infinite-Scroll&#8217;. If you haven&#8217;t you need to check it out <a href="http://www.infinite-scroll.com" target="_blank">here</a>. Anyway, when I was trying to incorporate this plug-in to my site, it was very easy; however, I could not for the life of me figure out how come the loading image and loading text I had specified in the jQuery options were not being executed. Well, the reason is that the documentation on the site has not been updated.</p>
<p>The Loading functionality is supposed to be passed as a separate array. So, instead of passing this code through the infinite scroll plug-in :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">loadingImg   : &quot;/img/loading.gif&quot;,          
                 // loading image.
                 // default: &quot;http://www.infinite-scroll.com/loading.gif&quot;
&nbsp;
loadingText  : &quot;Loading new posts...&quot;,      
                 // text accompanying loading image
                 // default: &quot;&lt;em&gt;Loading the next set of posts...&lt;/em&gt;&quot;</pre></div></div>

<p>You&#8217;ll want to add the following instead:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">loading: {
    img: &quot;/img/loading.gif&quot;,
    msgText: &quot;Loading new posts...&quot;
},</pre></div></div>

<p>And now, your custom image and message text will be displayed <img src='http://www.tonylea.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can checkout the original Github post issue here: <a href="https://github.com/paulirish/infinite-scroll/issues/72#issuecomment-1676802" target="_blank">https://github.com/paulirish/infinite-scroll/issues/72#issuecomment-1676802</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/infinite-scroll-loading-image-and-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 Great Uses of Facebook Connect</title>
		<link>http://www.tonylea.com/2012/3-great-uses-of-facebook-connect/</link>
		<comments>http://www.tonylea.com/2012/3-great-uses-of-facebook-connect/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 00:11:20 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2444</guid>
		<description><![CDATA[There are quite a few great websites coming out that are making great use of the new facebook Graph API. Here are just a few websites that I have found that are definitely worth checking out.]]></description>
			<content:encoded><![CDATA[<p>There are quite a few great websites coming out that are making great use of the new facebook Graph API. Here are just a few websites that I have found that are definitely worth checking out. Check&#8217;em out below:</p>
<h3>1. <a href="http://www.yardsellr.com" target="_blank">http://www.yardsellr.com</a></h3>
<p style="text-align: center;"><a href="http://www.yardsellr.com" target="_blank"><img class="aligncenter size-full wp-image-2445" style="padding: 2px; border: 1px solid #ccc;" title="yardsellr" src="http://www.tonylea.com/wp-content/uploads/2012/03/yardsellr.png" alt="" width="630" height="354" /></a></p>
<p style="text-align: left;">At Yardsellr you can easily buy and trade random crap that you would typically find at a Yardsale. Log-in with Facebook to buy, sell, and share items to other users.</p>
<h3>2. <a href="http://www.gtrot.com" target="_blank">http://www.gtrot.com</a></h3>
<p style="text-align: center;"><a href="http://www.gtrot.com"><img class="aligncenter size-full wp-image-2446" style="padding: 2px; border: 1px solid #ccc;" title="gtrot.com" src="http://www.tonylea.com/wp-content/uploads/2012/03/gtrot.com_.png" alt="" width="630" height="397" /></a></p>
<p>At Gtrot you will find out the greatest places, events, and deals in your destination. Log-in with your Facebook account to get recommendations and save your favorite places and events.</p>
<h3>3. <a href="http://www.muzy.com" target="_blank">http://www.muzy.com</a></h3>
<p style="text-align: center;"><a href="http://www.muzy.com"><img class="aligncenter size-full wp-image-2448" style="padding: 2px; border: 1px solid #ccc;" title="muzy.com" src="http://www.tonylea.com/wp-content/uploads/2012/03/muzy.com_1.png" alt="" width="630" height="393" /></a></p>
<p style="text-align: left;">At Muzy you can easily log-in with your Facebook account and create a simple photo collage of all your photos to share with friends and family.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/3-great-uses-of-facebook-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animating a Sprite with jQuery</title>
		<link>http://www.tonylea.com/2012/animating-a-sprite-with-jquery/</link>
		<comments>http://www.tonylea.com/2012/animating-a-sprite-with-jquery/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 15:20:52 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2432</guid>
		<description><![CDATA[Animating a sprite with jQuery is very simple. I have created a simple sprite animation to show you how this is done. I have used a png image of Mario from the SNES &#8216;Super Mario World&#8217;. You can see what the image looks like below: Check out the demo here. Below is the simple code [...]]]></description>
			<content:encoded><![CDATA[<p>Animating a sprite with jQuery is very simple. I have created a simple sprite animation to show you how this is done. I have used a png image of Mario from the SNES &#8216;Super Mario World&#8217;. You can see what the image looks like below:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2433" style="border:1px solid #ccc; padding:2px;" title="mario-walk" src="http://www.tonylea.com/wp-content/uploads/2012/03/mario-walk.gif" alt="" width="100" height="68" /></p>
<h2 style="text-align:center; width:100%;"><a href="http://www.tonylea.com/go/examples/mario_scroll/" target="_blank" style="color:#0098cb; text-align:center; display:block; width:100%">Check out the demo here.</a></h2>
<p>Below is the simple code that I used to create this simple animation:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&lt;html&gt;
	&lt;head&gt;
		&lt;title&gt;Mario Sprite Animation Scroll&lt;/title&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&quot;&gt;&lt;/script&gt;
		&lt;style type=&quot;text/css&quot;&gt;
			#mario{
				background:url('mario-walk.gif') no-repeat;
				width:50px;
				height:68px;
				position:fixed;
				left:0;
				background-position:0px 0px;
			}
&nbsp;
			#mario2{
				background:url('mario-walk.gif') no-repeat;
				width:50px;
				height:68px;
				position:fixed;
				left:0;
				background-position:0px 0px;
			}
&nbsp;
			.instructions
			{
				font-family:'Helvetica Neue', Helvetica, Arial;
				font-size:14px;
				color:#343434;
			}
&nbsp;
		&lt;/style&gt;
&nbsp;
		&lt;script type=&quot;text/javascript&quot;&gt;
			$('document').ready(function(){
				$('#mario').css('top', ($(window).height()/2)-($('#mario').height()/2));
&nbsp;
				$('html').keydown(function(){
					$('#mario').css('top', ($(window).height()/2)-($('#mario').height()/2));
					$('#mario').css('left', parseInt($('#mario').css('left'))+10);
&nbsp;
					if($('#mario').css('background-position') == '0px 0px'){
						$('#mario').css('background-position', '-50px 0px');
					} else {
						$('#mario').css('background-position', '0px 0px');
					}
&nbsp;
					if(parseInt($('#mario').css('left')) &gt; $(window).width())
					{
						$('#mario').css('left', -parseInt($('#mario').width()));
					}
&nbsp;
&nbsp;
				});
&nbsp;
&nbsp;
			});
&nbsp;
&nbsp;
&nbsp;
&nbsp;
		&lt;/script&gt;
&nbsp;
	&lt;/head&gt;
	&lt;body&gt;
&nbsp;
&nbsp;
		&lt;p class=&quot;instructions&quot; readonly=&quot;readonly&quot;&gt;Hold any key down to animate mario...&lt;/p&gt;
		&lt;div id=&quot;mario&quot;&gt;&lt;/div&gt;
&nbsp;
	&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p><a href="http://www.tonylea.com/go/examples/mario_scroll/mario_scroll.zip" target="_blank" style="font-size:20px">You can download the files from here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/animating-a-sprite-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Facebook Authentication</title>
		<link>http://www.tonylea.com/2012/easy-facebook-authentication/</link>
		<comments>http://www.tonylea.com/2012/easy-facebook-authentication/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 00:23:51 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2423</guid>
		<description><![CDATA[I don&#8217;t know what it is about Facebook documentation that I find tedious. I feel that their documentation overcomplicates things because they try and cover so much. Anyway, I created a very basic version of how to implement their Authentication API. Take a look at the simple demo here: http://www.tonylea.com/go/examples/easy-facebook-authentication/ You can checkout the repository [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know what it is about Facebook documentation that I find tedious. I feel that their documentation overcomplicates things because they try and cover so much. Anyway, I created a very basic version of how to implement their Authentication API.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2426" style="padding: 2px; border: 1px solid #ccc;" title="facebook-authentication" src="http://www.tonylea.com/wp-content/uploads/2012/02/facebook-authentication1.png" alt="" width="610" height="323" /></p>
<p>Take a look at the simple demo here:</p>
<h4><a href="http://www.tonylea.com/go/examples/easy-facebook-authentication/" target="_blank">http://www.tonylea.com/go/examples/easy-facebook-authentication/</a></h4>
<p>You can checkout the repository here:</p>
<h4><a href="https://github.com/tnylea/easy-facebook-authentication" target="_blank">https://github.com/tnylea/easy-facebook-authentication</a></h4>
<p>There are two main files and they are very self explanatory. &#8216;index.php&#8217; contains a link to the Facebook OAuth url with the current APP ID, then &#8216;output.php&#8217; takes the access_token of the authenticated user and outputs a JSON array. Then you can feel free to use the data as you wish <img src='http://www.tonylea.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/easy-facebook-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you ready for Mac OS X Mountain Lion?</title>
		<link>http://www.tonylea.com/2012/are-you-ready-for-mac-os-x-mountain-lion/</link>
		<comments>http://www.tonylea.com/2012/are-you-ready-for-mac-os-x-mountain-lion/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 15:10:55 +0000</pubDate>
		<dc:creator>tnylea</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mountain Lion]]></category>
		<category><![CDATA[OS X Mountain Lion]]></category>

		<guid isPermaLink="false">http://www.tonylea.com/?p=2407</guid>
		<description><![CDATA[Apple has recently announced their latest operating system, Mountain Lion, which will be available this summer. This latest version of the operating system is a clear indication that Apple wants all mobile, tablet, and desktop devices to all play nicely. There are so many great new features in this upgrade. Here are some of the [...]]]></description>
			<content:encoded><![CDATA[<p>Apple has recently announced their latest operating system, Mountain Lion, which will be available this summer. This latest version of the operating system is a clear indication that Apple wants all mobile, tablet, and desktop devices to all play nicely. There are so many great new features in this upgrade. Here are some of the top new features:</p>
<h2>Messages:</h2>
<p>The iOS version 4.0 brought us iMessages, now just being called &#8216;Messages&#8217;. You will be able to send Messages and receive messages from all Mac OS devices. Yup, send messages from your iPhone, iPad, and now your Mac.</p>
<h2><img class="aligncenter size-full wp-image-2410" title="mountain-lion-messages" src="http://www.tonylea.com/wp-content/uploads/2012/02/mountain-lion-messages.png" alt="" width="630" height="362" /></h2>
<h2>Notification Center:</h2>
<p>View your latest messages, reminders, and alerts from the integrated notification center on your Mac.</p>
<p><img class="aligncenter size-full wp-image-2411" title="mountain-lion-notifications" src="http://www.tonylea.com/wp-content/uploads/2012/02/mountain-lion-notifications.png" alt="" width="630" height="376" /></p>
<h2>Reminders:</h2>
<p>The new reminders app on the latest OS will integrate with your mobile reminders. So, setup your reminders and notifications to receive them across all your devices.</p>
<p><img class="aligncenter size-full wp-image-2412" title="mountain-lion-reminders" src="http://www.tonylea.com/wp-content/uploads/2012/02/mountain-lion-reminders.png" alt="" width="630" height="359" /></p>
<h2>Notes:</h2>
<p>Now, you can get your notes on your Mac desktop and always have them available. With the new version of Notes on your Mac Desktop, you&#8217;ll easily be able to jot down notes and even drag and drop images onto your notepad.</p>
<p><img class="aligncenter size-full wp-image-2413" title="mountain-lion-notes" src="http://www.tonylea.com/wp-content/uploads/2012/02/mountain-lion-notes.png" alt="" width="630" height="376" /></p>
<h2>Game Center:</h2>
<p>The Game Center that we all know and love will now be available on the latest operating system. So, now you can get your game on and view all your friends scores on your Mac.</p>
<p><img class="aligncenter size-full wp-image-2414" title="mountain-lion-gamecenter" src="http://www.tonylea.com/wp-content/uploads/2012/02/mountain-lion-gamecenter.png" alt="" width="630" height="317" /></p>
<h2>Air Display:</h2>
<p>With the all new air display you will easily be able to mirror your desktop screen to your TV through your Apple TV device!</p>
<p><img class="aligncenter size-full wp-image-2415" title="mountain-lion-air-display" src="http://www.tonylea.com/wp-content/uploads/2012/02/mountain-lion-air-display.png" alt="" width="630" height="383" />The new features in this latest version is a glimpse of what we will definitely see in the future. Heavy integration across all Mac OS devices. This is definitely very exciting <img src='http://www.tonylea.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can check out the Mountain Lion video below. Additionally be sure to checkout the <a href="http://www.apple.com/macosx/mountain-lion/" target="_blank">Apple Mountain Lion</a> official page for more info on this exciting new release.</p>
<p><object width="629" height="390"><param name="movie" value="http://www.youtube.com/v/DoR08T26IPU?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DoR08T26IPU?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="629" height="390" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonylea.com/2012/are-you-ready-for-mac-os-x-mountain-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

