<?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; AJAX</title>
	<atom:link href="http://www.ericditmer.com/category/ajax/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>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>

