<?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>Eric Ditmer &#187; jQuery</title>
	<atom:link href="http://www.ericditmer.com/category/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ericditmer.com</link>
	<description>ericditmer.com</description>
	<lastBuildDate>Tue, 08 Nov 2011 14:35:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Set Elements to Equal Heights with jQuery</title>
		<link>http://www.ericditmer.com/equal-heights-jquery</link>
		<comments>http://www.ericditmer.com/equal-heights-jquery#comments</comments>
		<pubDate>Sun, 11 Sep 2011 06:01:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.ericditmer.com/?p=58</guid>
		<description><![CDATA[Here&#8217;s a quick jQuery plugin I put together for equalizing the heights of multiple elements. You give the plugin a list of elements, jQuery then loops through the specified elements, finds the tallest, and sets the height of each element to the tallest one. (function ($) { $.fn.equalHeights = function() { var max_height = 0; [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick jQuery plugin I put together for equalizing the heights of multiple elements. You give the plugin a list of elements, jQuery then loops through the specified elements, finds the tallest, and sets the height of each element to the tallest one.</p>
<p><span id="more-58"></span></p>
<pre name="code" class="javascript">
(function ($) {
	$.fn.equalHeights = function() {
		var max_height = 0;
		var currentHeight = 0;

		this.each(function() {
			currentHeight = $(this).height();
			if(currentHeight > max_height) {
				max_height = currentHeight;
			}
		});
		this.each(function() {
			$(this).height(max_height);
		});
	};
})(jQuery);
</pre>
<h3>Usage</h3>
<p>It&#8217;s pretty simple, all you have to do is give the plugin a list of elements like so:</p>
<pre name="code" class="javascript">
$(document).ready(function() {
    $("#div-one, #div-two, #div-three").equalHeights();
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ericditmer.com/equal-heights-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making AJAX Requests with jQuery</title>
		<link>http://www.ericditmer.com/ajax-requests-with-jquery</link>
		<comments>http://www.ericditmer.com/ajax-requests-with-jquery#comments</comments>
		<pubDate>Thu, 25 Aug 2011 04:11:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.ericditmer.com/?p=194</guid>
		<description><![CDATA[Making an XMLHttpRequest (AJAX request) enables JavaScript code to make asynchronous HTTP requests to the server. Creating the XMLHttpRequest object via standard JavaScript quickly turns into a lengthy bit of code. This is where JavaScript&#8217;s beautiful cousin steps in: jQuery. jQuery Makes Writing JavaScript Easier With jQuery, we can create our XMLHttpRequest in just under [...]]]></description>
			<content:encoded><![CDATA[<p>Making an XMLHttpRequest (AJAX request) enables JavaScript code to make asynchronous HTTP requests to the server. Creating the XMLHttpRequest object via standard JavaScript quickly turns into a lengthy bit of code. This is where JavaScript&#8217;s beautiful cousin steps in: jQuery. <span id="more-194"></span></p>
<h3>jQuery Makes Writing JavaScript Easier</h3>
<p>With jQuery, we can create our XMLHttpRequest in just under 10 lines of code:</p>
<pre name="code" class="js">
$.ajax({
    var rand = Math.round(Math.random() * 999999);
    type: "POST",
    url: "ajax-page.php",
    data: "name=Eric&#038;location=Ohio&#038;rand=" + rand,
    success: function(msg) {
        alert(msg);
    }
});
</pre>
<h3>Stupid Internet Explorer</h3>
<p>If you&#8217;re using the GET method when submitting via AJAX, Internet Explorer may try to cache your request. We have solved this issue by adding a random number to the end of our query string as referenced in the example above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericditmer.com/ajax-requests-with-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

