<?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>Michael Hartmayer - Portfolio &#187; jquery</title>
	<atom:link href="http://www.michaelhartmayer.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelhartmayer.com</link>
	<description>Have a Leet Smoothy</description>
	<lastBuildDate>Wed, 21 Jul 2010 04:04:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fetch Google Pages Indexed Using PHP and AJAX</title>
		<link>http://www.michaelhartmayer.com/php/fetch-google-pages-indexed-using-php-and-ajax/</link>
		<comments>http://www.michaelhartmayer.com/php/fetch-google-pages-indexed-using-php-and-ajax/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 01:27:26 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=447</guid>
		<description><![CDATA[Here&#8217;s a quick and dirty solution I threw together to fetch how many pages of a site google has index. I needed this for one of my control panels, so my work group could track this and other metrics on the fly. gpindex.php &#60;?php // Some arbitrary access code so not everyone can access it. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick and dirty solution I threw together to fetch how many pages of a site google has index. I needed this for one of my control panels, so my work group could track this and other metrics on the fly.</p>
<p><strong>gpindex.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">// Some arbitrary access code so not everyone can access it. Not &quot;real&quot; security :)</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'accessCode'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #0000ff;">&quot;some_password&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Access Denied&quot;</span><span style="color: #339933;">;</span> <span style="color: #990000;">exit</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$site</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'site'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$gurl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://www.google.com/search?q=site:&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$curl_handle</span><span style="color: #339933;">=</span><span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #339933;">,</span>CURLOPT_URL<span style="color: #339933;">,</span><span style="color: #000088;">$gurl</span><span style="color: #339933;">.</span><span style="color: #000088;">$site</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #339933;">,</span>CURLOPT_CONNECTTIMEOUT<span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #339933;">,</span>CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$buffer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$curl_handle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#Results(.*)of about &lt;b&gt;(.*)&lt;/b&gt; from &lt;b&gt;<span style="color: #006699; font-weight: bold;">$site</span>&lt;/b&gt;#&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$buffer</span><span style="color: #339933;">,</span><span style="color: #000088;">$matches</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And here&#8217;s the Ajax via jQuery that is used to fetch the information:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;js/patch/jquery.min.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
   $<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: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
         url<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;http://www.example.com/path/to/gpindex.php?accessCode=some_password&amp;site=example.com&quot;</span><span style="color: #339933;">,</span>
         success<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>d<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#googleIndexed&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; Pages&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</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>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&lt;p style=&quot;font-size:11px;&quot;&gt;Indexed on Google&lt;/p&gt;
&lt;p style=&quot;font-size:11px; font-weight:bold;&quot; id=&quot;googleIndexed&quot;&gt;( Fetching Data )&lt;/p&gt;</pre></div></div>


<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;bodytext=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;notes=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;t=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;annotation=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=Here%27s%20a%20quick%20and%20dirty%20solution%20I%20threw%20together%20to%20fetch%20how%20many%20pages%20of%20a%20site%20google%20has%20index.%20I%20needed%20this%20for%20one%20of%20my%20control%20panels%2C%20so%20my%20work%20group%20could%20track%20this%20and%20other%20metrics%20on%20the%20fly.%0D%0A%0D%0Agpindex.php%0D%0A%0D%0A%0D%0A" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;t=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fphp%2Ffetch-google-pages-indexed-using-php-and-ajax%2F&amp;title=Fetch%20Google%20Pages%20Indexed%20Using%20PHP%20and%20AJAX" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/php/fetch-google-pages-indexed-using-php-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 / IE7 jQuery Fix: Anchor Image Clickable Area</title>
		<link>http://www.michaelhartmayer.com/web-design/ie6-ie7-jquery-fix-anchor-image-clickable-area/</link>
		<comments>http://www.michaelhartmayer.com/web-design/ie6-ie7-jquery-fix-anchor-image-clickable-area/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 18:45:31 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=396</guid>
		<description><![CDATA[IE6 and IE7 both experience a problem in which images inside of block elements inside of anchors lose their click ability. Here&#8217;s an example: &#60;a href=&#34;rss-icon.png&#34;&#62; &#60;span style=&#34;display:block; width:100px; height:100px;&#34;&#62; &#60;img src=&#34;someImage.png&#34; /&#62; &#60;/span&#62; &#60;/a&#62; Every area of the link remains click-able except for the surface consumed by someImage.png. (Note, this problem will not show [...]]]></description>
			<content:encoded><![CDATA[<p>IE6 and IE7 both experience a problem in which images inside of block elements inside of anchors lose their click ability. Here&#8217;s an example:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;rss-icon.png&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;display:block; width:100px; height:100px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;someImage.png&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Every area of the link remains click-able except for the surface consumed by someImage.png. (Note, this problem will not show in IE8, or FF)</p>
<p>Here&#8217;s a very small jQuery plugin I wrote to fix this particular issue.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><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: #660066;">fn</span>.<span style="color: #660066;">fixClick</span> <span style="color: #339933;">=</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; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</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: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>
				.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">'pointer'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
				.<span style="color: #660066;">click</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>
					window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</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>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Simply select your target element(s) and use this plugin to make the entire anchor click-able again. Here&#8217;s an example:</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;">'a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fixClick</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></pre></div></div>


<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;bodytext=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;notes=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;t=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;annotation=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=IE6%20and%20IE7%20both%20experience%20a%20problem%20in%20which%20images%20inside%20of%20block%20elements%20inside%20of%20anchors%20lose%20their%20click%20ability.%20Here%27s%20an%20example%3A%0D%0A%0D%0A%0D%0A%0D%0A%09%0D%0A%09%09%0D%0A%09%0D%0A%0D%0A%0D%0A%0D%0AEvery%20area%20of%20the%20link%20remains%20click-able%20except%20for%20the%20surface%20consumed%20by%20someImag" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;t=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fweb-design%2Fie6-ie7-jquery-fix-anchor-image-clickable-area%2F&amp;title=IE6%20%2F%20IE7%20jQuery%20Fix%3A%20Anchor%20Image%20Clickable%20Area" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/web-design/ie6-ie7-jquery-fix-anchor-image-clickable-area/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Alternating Styles in jQuery (Plug-In)</title>
		<link>http://www.michaelhartmayer.com/javascript/alternating-styles-jquery-plugin/</link>
		<comments>http://www.michaelhartmayer.com/javascript/alternating-styles-jquery-plugin/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 18:40:02 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=345</guid>
		<description><![CDATA[This is a little script that I wrote, that lets you easily alternate the style of repeating class elements, or w/e elements you want to select. This is particularly useful for lists, and the like. function&#40;$&#41;&#123; $.fn.styleAlternation = function&#40;aClass, bClass&#41; &#123; var i = 0; return this.each&#40;function&#40;&#41; &#123; if &#40;++i % 2 != 0 &#38;&#38; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little script that I wrote, that lets you easily alternate the style of repeating class elements, or w/e elements you want to select. This is particularly useful for lists, and the like.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><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: #660066;">fn</span>.<span style="color: #660066;">styleAlternation</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>aClass<span style="color: #339933;">,</span> bClass<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</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; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">++</span>i <span style="color: #339933;">%</span> <span style="color: #CC0000;">2</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> aClass<span style="color: #339933;">!=</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span>aClass<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>bClass<span style="color: #339933;">!=</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span>bClass<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</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;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The usage is very simple. Here&#8217;s the JavaScript:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#awesomeTable tr&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">styleAlternation</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;cssClass1&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;cssClass2&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>From there, all you need to do is create your CSS. Example:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.cssClass1</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#444</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cssClass2</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Here&#8217;s a screenshot:<br />
<a href="http://www.michaelhartmayer.com/wp-content/uploads/2009/07/tableSample.JPG" rel="lightbox"><img src="http://www.michaelhartmayer.com/wp-content/uploads/2009/07/tableSample.JPG" alt="Alternation Demo" title="Alternation Demo" width="301" height="263" class="alignnone size-full wp-image-353" /></a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29&amp;bodytext=This%20is%20a%20little%20script%20that%20I%20wrote%2C%20that%20lets%20you%20easily%20alternate%20the%20style%20of%20repeating%20class%20elements%2C%20or%20w%2Fe%20elements%20you%20want%20to%20select.%20This%20is%20particularly%20useful%20for%20lists%2C%20and%20the%20like.%0D%0A%0D%0A%0D%0Afunction%28%24%29%7B%0D%0A%24.fn.styleAlternation%20%3D%20function%28a" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29&amp;notes=This%20is%20a%20little%20script%20that%20I%20wrote%2C%20that%20lets%20you%20easily%20alternate%20the%20style%20of%20repeating%20class%20elements%2C%20or%20w%2Fe%20elements%20you%20want%20to%20select.%20This%20is%20particularly%20useful%20for%20lists%2C%20and%20the%20like.%0D%0A%0D%0A%0D%0Afunction%28%24%29%7B%0D%0A%24.fn.styleAlternation%20%3D%20function%28a" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;t=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29&amp;annotation=This%20is%20a%20little%20script%20that%20I%20wrote%2C%20that%20lets%20you%20easily%20alternate%20the%20style%20of%20repeating%20class%20elements%2C%20or%20w%2Fe%20elements%20you%20want%20to%20select.%20This%20is%20particularly%20useful%20for%20lists%2C%20and%20the%20like.%0D%0A%0D%0A%0D%0Afunction%28%24%29%7B%0D%0A%24.fn.styleAlternation%20%3D%20function%28a" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=This%20is%20a%20little%20script%20that%20I%20wrote%2C%20that%20lets%20you%20easily%20alternate%20the%20style%20of%20repeating%20class%20elements%2C%20or%20w%2Fe%20elements%20you%20want%20to%20select.%20This%20is%20particularly%20useful%20for%20lists%2C%20and%20the%20like.%0D%0A%0D%0A%0D%0Afunction%28%24%29%7B%0D%0A%24.fn.styleAlternation%20%3D%20function%28a" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;t=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Falternating-styles-jquery-plugin%2F&amp;title=Alternating%20Styles%20in%20jQuery%20%28Plug-In%29" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/javascript/alternating-styles-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Calendar Loader Using jQuery</title>
		<link>http://www.michaelhartmayer.com/javascript/ajax-calendar-loader-jquery/</link>
		<comments>http://www.michaelhartmayer.com/javascript/ajax-calendar-loader-jquery/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 20:04:15 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=335</guid>
		<description><![CDATA[My good pal Austin needed help turning his static calendar into one that could change the month, using AJAX. The calendar itself was written in PHP. Here is the quick and easy solution I came up with for him, using jQuery: $&#40;document&#41;.ready&#40;function&#40;&#41; &#123; &#160; // Create Date Object var jsDateObject = new Date&#40;&#41;; &#160; // [...]]]></description>
			<content:encoded><![CDATA[<p>My good pal Austin needed help turning his static calendar into one that could change the month, using AJAX. The calendar itself was written in PHP. Here is the quick and easy solution I came up with for him, using jQuery:</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>
&nbsp;
   <span style="color: #006600; font-style: italic;">// Create Date Object</span>
   <span style="color: #003366; font-weight: bold;">var</span> jsDateObject <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #006600; font-style: italic;">// Create Calendar Object ( Holds all your variables, etc )</span>
   <span style="color: #003366; font-weight: bold;">var</span> jsCalendar <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
       jsCalendar.<span style="color: #660066;">currentMonth</span> <span style="color: #339933;">=</span> jsDateObject.<span style="color: #660066;">getMonth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #006600; font-style: italic;">// Controls the NEXT button</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#jsCalendarNext&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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: #006600; font-style: italic;">// Update Active Month</span>
      jsCalendar.<span style="color: #660066;">currentMonth</span><span style="color: #339933;">++;</span>
         <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jsCalendar.<span style="color: #660066;">currentMonth</span><span style="color: #339933;">&gt;</span><span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> jsCalendar.<span style="color: #660066;">currentMonth</span><span style="color: #339933;">=</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #006600; font-style: italic;">// Get New Calendar</span>
      ajaxUpdateCalendar<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>
&nbsp;
   <span style="color: #006600; font-style: italic;">// Controls the PREV button</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#jsCalendarPrev&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</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: #006600; font-style: italic;">// Update Active Month</span>
      jsCalendar.<span style="color: #660066;">currentMonth</span><span style="color: #339933;">--;</span>
         <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jsCalendar.<span style="color: #660066;">currentMonth</span><span style="color: #339933;">&lt;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> jsCalendar.<span style="color: #660066;">currentMonth</span><span style="color: #339933;">=</span><span style="color: #CC0000;">12</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #006600; font-style: italic;">// Get New Calendar</span>
      ajaxUpdateCalendar<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>
&nbsp;
   <span style="color: #006600; font-style: italic;">// Use AJAX to update the Calendar</span>
   <span style="color: #003366; font-weight: bold;">function</span> ajaxUpdateCalendar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      $.<span style="color: #660066;">post</span><span style="color: #009900;">&#40;</span>
         <span style="color: #3366CC;">&quot;phpCalendarLoader.php&quot;</span><span style="color: #339933;">,</span>
         <span style="color: #009900;">&#123;</span> calendarMonth<span style="color: #339933;">:</span> jsCalendar.<span style="color: #660066;">currentMonth</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
         <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#jsCalendarContainer&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
         <span style="color: #3366CC;">&quot;html&quot;</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>From here, all Austin had to do was set his <em>$month</em> variable to <em>$_POST['calendarMonth'];</em>.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery&amp;bodytext=My%20good%20pal%20Austin%20needed%20help%20turning%20his%20static%20calendar%20into%20one%20that%20could%20change%20the%20month%2C%20using%20AJAX.%20The%20calendar%20itself%20was%20written%20in%20PHP.%20Here%20is%20the%20quick%20and%20easy%20solution%20I%20came%20up%20with%20for%20him%2C%20using%20jQuery%3A%0D%0A%0D%0A%24%28document%29.ready%28functi" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery&amp;notes=My%20good%20pal%20Austin%20needed%20help%20turning%20his%20static%20calendar%20into%20one%20that%20could%20change%20the%20month%2C%20using%20AJAX.%20The%20calendar%20itself%20was%20written%20in%20PHP.%20Here%20is%20the%20quick%20and%20easy%20solution%20I%20came%20up%20with%20for%20him%2C%20using%20jQuery%3A%0D%0A%0D%0A%24%28document%29.ready%28functi" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;t=AJAX%20Calendar%20Loader%20Using%20jQuery" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery&amp;annotation=My%20good%20pal%20Austin%20needed%20help%20turning%20his%20static%20calendar%20into%20one%20that%20could%20change%20the%20month%2C%20using%20AJAX.%20The%20calendar%20itself%20was%20written%20in%20PHP.%20Here%20is%20the%20quick%20and%20easy%20solution%20I%20came%20up%20with%20for%20him%2C%20using%20jQuery%3A%0D%0A%0D%0A%24%28document%29.ready%28functi" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery&amp;source=Michael+Hartmayer+-+Portfolio+Have+a+Leet+Smoothy&amp;summary=My%20good%20pal%20Austin%20needed%20help%20turning%20his%20static%20calendar%20into%20one%20that%20could%20change%20the%20month%2C%20using%20AJAX.%20The%20calendar%20itself%20was%20written%20in%20PHP.%20Here%20is%20the%20quick%20and%20easy%20solution%20I%20came%20up%20with%20for%20him%2C%20using%20jQuery%3A%0D%0A%0D%0A%24%28document%29.ready%28functi" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;t=AJAX%20Calendar%20Loader%20Using%20jQuery" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fjavascript%2Fajax-calendar-loader-jquery%2F&amp;title=AJAX%20Calendar%20Loader%20Using%20jQuery" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/javascript/ajax-calendar-loader-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
