<?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>Amaronline.com &#187; AJAX</title>
	<atom:link href="http://www.amaronline.com/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amaronline.com</link>
	<description>Technology makes everything perfect</description>
	<lastBuildDate>Fri, 30 Jul 2010 07:45:31 +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>AJAX = Asynchronous JavaScript and XML</title>
		<link>http://www.amaronline.com/2009/05/ajax-asynchronous-javascript-and-xml/</link>
		<comments>http://www.amaronline.com/2009/05/ajax-asynchronous-javascript-and-xml/#comments</comments>
		<pubDate>Sat, 23 May 2009 16:26:10 +0000</pubDate>
		<dc:creator>amaronline</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Web Guide]]></category>
		<category><![CDATA[ajax = asynchronous javascript and xml]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xmlhttprequest]]></category>

		<guid isPermaLink="false">http://www.amaronline.com/?p=160</guid>
		<description><![CDATA[AJAX is not a new programming language, but a new technique for creating better, faster, and more interactive web applications. &#160; With AJAX, a JavaScript can communicate directly with the server, with the XMLHttpRequest object. With this object, a JavaScript can trade data with a web server, without reloading the page. AJAX uses asynchronous data [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.amaronline.com%2F2009%2F05%2Fajax-asynchronous-javascript-and-xml%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.amaronline.com%2F2009%2F05%2Fajax-asynchronous-javascript-and-xml%2F&amp;source=amaronline&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img height="175" align="left" width="200" src="http://www.amaronline.com/wp-content/plugins/image-shadow/cache/333faa20b1f649cad9e1c6593da8c67d.jpg" alt="" />AJAX is not a new programming language, but a new technique for creating better, faster, and more interactive web applications.</p>
<p>&nbsp;</p>
<p>With AJAX, a JavaScript can communicate directly with the server, with the XMLHttpRequest object. With this object, a JavaScript can trade data with a web server, without reloading the page.</p>
<p>AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.</p>
<p>The AJAX technique makes Internet applications smaller, faster and more user-friendly.</p>
<p>AJAX is based on Internet standards</p>
<p>AJAX is based on the following web standards:</p>
<p>&nbsp;&nbsp;&nbsp; * JavaScript<br />
&nbsp;&nbsp;&nbsp; * XML<br />
&nbsp;&nbsp;&nbsp; * HTML<br />
&nbsp;&nbsp;&nbsp; * CSS</p>
<p>lamp&nbsp; AJAX applications are browser- and platform-independent.<br />
AJAX uses the XMLHttpRequest object</p>
<p>To get or send information from/to a database or a file on the server with traditional JavaScript, you will have to make an HTML form, and a user will have to click the &quot;Submit&quot; button to send/get the information, wait for the server to respond, then a new page will load with the results. Because the server returns a new page each time the user submits input, traditional web applications can run slowly and tend to be less user-friendly.</p>
<p>With AJAX, your JavaScript communicates directly with the server, through the JavaScript XMLHttpRequest object.</p>
<p>With the XMLHttpRequest object, a web page can make a request to, and get a response from a web server &#8211; without reloading the page. The user will stay on the same page, and he or she will not notice that scripts request pages, or send data to a server in the background.<br />
The XMLHttpRequest object</p>
<p>By using the XMLHttpRequest object, a web developer can update a page with data from the server after the page has loaded!</p>
<p>AJAX was made popular in 2005 by Google (with Google Suggest).</p>
<p>Google Suggest is using the XMLHttpRequest object to create a very dynamic web interface: When you start typing in Google&#8217;s search box, a JavaScript sends the letters off to a server and the server returns a list of suggestions.</p>
<p>The XMLHttpRequest object is supported in all major browsers (Internet Explorer, Firefox, Chrome, Opera, and Safari).</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2009/05/ajax-asynchronous-javascript-and-xml/" target="_blank"><img src="http://www.amaronline.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2009/05/ajax-asynchronous-javascript-and-xml/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amaronline.com/2009/05/ajax-asynchronous-javascript-and-xml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AJAX &#8211; The XMLHttpRequest Object</title>
		<link>http://www.amaronline.com/2008/11/ajax-the-xmlhttprequest-object/</link>
		<comments>http://www.amaronline.com/2008/11/ajax-the-xmlhttprequest-object/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 04:07:52 +0000</pubDate>
		<dc:creator>amaronline</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[xmlhttprequest object]]></category>

		<guid isPermaLink="false">http://www.amaronline.com/?p=51</guid>
		<description><![CDATA[AJAX &#8211; More About the XMLHttpRequest Object Before sending data to the server, we have to explain three important properties of the XMLHttpRequest object. The onreadystatechange Property After a request to the server, we need a function that can receive the data that is returned by the server. The onreadystatechange property stores your function that [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fajax-the-xmlhttprequest-object%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fajax-the-xmlhttprequest-object%2F&amp;source=amaronline&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>AJAX &#8211; More About the XMLHttpRequest Object</p>
<p>Before sending data to the server, we have to explain three important properties of the XMLHttpRequest object.<br />
The onreadystatechange Property</p>
<p>After a request to the server, we need a function that can receive the data that is returned by the server.</p>
<p>The onreadystatechange property stores your function that will process the response from a server. This is not a method, the function is stored in the property to be called automatically. The following code sets the onreadystatechange property and stores an empty function inside it:</p>
<p>xmlHttp.onreadystatechange=function()<br />
{<br />
// We are going to write some code here<br />
}</p>
<p>The readyState Property</p>
<p>The readyState property holds the status of the server&#8217;s response. Each time the readyState changes, the onreadystatechange function will be executed.</p>
<p>Here are the possible values for the readyState property:<br />
State	Description<br />
0	The request is not initialized<br />
1	The request has been set up<br />
2	The request has been sent<br />
3	The request is in process<br />
4	The request is complete</p>
<p>We are going to add an If statement to the onreadystatechange function to test if our response is complete (this means that we can get our data):</p>
<p>xmlHttp.onreadystatechange=function()<br />
{<br />
if(xmlHttp.readyState==4)<br />
  {<br />
  // Get the data from the server&#8217;s response<br />
  }<br />
}</p>
<p>The responseText Property</p>
<p>The data sent back from the server can be retrieved with the responseText property.</p>
<p>In our code, we will set the value of our &#8220;time&#8221; input field equal to responseText:</p>
<p>xmlHttp.onreadystatechange=function()<br />
{<br />
if(xmlHttp.readyState==4)<br />
  {<br />
  document.myForm.time.value=xmlHttp.responseText;<br />
  }<br />
}</p>
<p>The next chapter shows how to ask the server for some data!</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/ajax-the-xmlhttprequest-object/" target="_blank" class="liimagelink"><img src="http://www.amaronline.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/ajax-the-xmlhttprequest-object/" target="_blank" title="Share on Facebook" class="liexternal">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amaronline.com/2008/11/ajax-the-xmlhttprequest-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Browser Support</title>
		<link>http://www.amaronline.com/2008/11/ajax-browser-support/</link>
		<comments>http://www.amaronline.com/2008/11/ajax-browser-support/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 04:05:33 +0000</pubDate>
		<dc:creator>amaronline</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[browser support]]></category>

		<guid isPermaLink="false">http://www.amaronline.com/?p=47</guid>
		<description><![CDATA[AJAX &#8211; Browser Support The keystone of AJAX is the XMLHttpRequest object. Different browsers use different methods to create the XMLHttpRequest object. Internet Explorer uses an ActiveXObject, while other browsers uses the built-in JavaScript object called XMLHttpRequest. To create this object, and deal with different browsers, we are going to use a &#8220;try and catch&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fajax-browser-support%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fajax-browser-support%2F&amp;source=amaronline&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>AJAX &#8211; Browser Support</p>
<p>The keystone of AJAX is the XMLHttpRequest object.</p>
<p>Different browsers use different methods to create the XMLHttpRequest object.</p>
<p>Internet Explorer uses an ActiveXObject, while other browsers uses the built-in JavaScript object called XMLHttpRequest.</p>
<p>To create this object, and deal with different browsers, we are going to use a &#8220;try and catch&#8221; statement. You can read more about the try and catch statement in our JavaScript tutorial.</p>
<p>Let&#8217;s update our &#8220;testAjax.htm&#8221; file with the JavaScript that creates the XMLHttpRequest object:</p>
<p>Example explained: First create a variable xmlHttp to hold the XMLHttpRequest object.</p>
<p>Then try to create the object with XMLHttp=new XMLHttpRequest(). This is for the Firefox, Opera, and Safari browsers. If that fails, try xmlHttp=new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;) which is for Internet Explorer 6.0+, if that also fails, try xmlHttp=new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;) which is for Internet Explorer 5.5+</p>
<p>If none of the three methods work, the user has a very outdated browser, and he or she will get an alert stating that the browser doesn&#8217;t support AJAX.</p>
<p>Note: The browser-specific code above is long and quite complex. However, this is the code you can use every time you need to create an XMLHttpRequest object, so you can just copy and paste it whenever you need it. The code above is compatible with all the popular browsers: Internet Explorer, Opera, Firefox, and Safari.</p>
<p>The next chapter shows how to use the XMLHttpRequest object to communicate with the server.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/ajax-browser-support/" target="_blank" class="liimagelink"><img src="http://www.amaronline.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/ajax-browser-support/" target="_blank" title="Share on Facebook" class="liexternal">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amaronline.com/2008/11/ajax-browser-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Http Requests</title>
		<link>http://www.amaronline.com/2008/11/ajax-http-requests/</link>
		<comments>http://www.amaronline.com/2008/11/ajax-http-requests/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 04:04:36 +0000</pubDate>
		<dc:creator>amaronline</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[http requests]]></category>

		<guid isPermaLink="false">http://www.amaronline.com/?p=45</guid>
		<description><![CDATA[AJAX Uses HTTP Requests In traditional JavaScript coding, if you want to get any information from a database or a file on the server, or send user information to a server, you will have to make an HTML form and GET or POST data to the server. The user will have to click the &#8220;Submit&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fajax-http-requests%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fajax-http-requests%2F&amp;source=amaronline&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>AJAX Uses HTTP Requests</p>
<p>In traditional JavaScript coding, if you want to get any information from a database or a file on the server, or send user information to a server, you will have to make an HTML form and GET or POST data to the server. The user will have to click the &#8220;Submit&#8221; button to send/get the information, wait for the server to respond, then a new page will load with the results.</p>
<p>Because the server returns a new page each time the user submits input, traditional web applications can run slowly and tend to be less user-friendly.</p>
<p>With AJAX, your JavaScript communicates directly with the server, through the JavaScript XMLHttpRequest object</p>
<p>With an HTTP request, a web page can make a request to, and get a response from a web server &#8211; without reloading the page. The user will stay on the same page, and he or she will not notice that scripts request pages, or send data to a server in the background.<br />
The XMLHttpRequest Object</p>
<p>By using the XMLHttpRequest object, a web developer can update a page with data from the server after the page has loaded!</p>
<p>AJAX was made popular in 2005 by Google (with Google Suggest).</p>
<p>Google Suggest is using the XMLHttpRequest object to create a very dynamic web interface: When you start typing in Google&#8217;s search box, a JavaScript sends the letters off to a server and the server returns a list of suggestions.</p>
<p>The XMLHttpRequest object is supported in Internet Explorer 5.0+, Safari 1.2, Mozilla 1.0 / Firefox, Opera 8+, and Netscape 7.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/ajax-http-requests/" target="_blank" class="liimagelink"><img src="http://www.amaronline.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/ajax-http-requests/" target="_blank" title="Share on Facebook" class="liexternal">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amaronline.com/2008/11/ajax-http-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to Ajax</title>
		<link>http://www.amaronline.com/2008/11/introduction-to-ajax/</link>
		<comments>http://www.amaronline.com/2008/11/introduction-to-ajax/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 17:16:26 +0000</pubDate>
		<dc:creator>amaronline</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Asynchronous JavaScript And XML]]></category>
		<category><![CDATA[java script]]></category>
		<category><![CDATA[learn ajax]]></category>
		<category><![CDATA[what is ajax]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.amaronline.com/?p=15</guid>
		<description><![CDATA[AJAX stands for Asynchronous JavaScript And XML. What You Should Already Know Before you continue you should have a basic understanding of the following: * HTML / XHTML * JavaScript If you want to study these subjects first, find the tutorials on our Home page. AJAX = Asynchronous JavaScript and XML AJAX is not a [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fintroduction-to-ajax%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.amaronline.com%2F2008%2F11%2Fintroduction-to-ajax%2F&amp;source=amaronline&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>AJAX stands for Asynchronous JavaScript And XML.<br />
What You Should Already Know</p>
<p>Before you continue you should have a basic understanding of the following:</p>
<p>* HTML / XHTML<br />
* JavaScript</p>
<p>If you want to study these subjects first, find the tutorials on our Home page.<br />
AJAX = Asynchronous JavaScript and XML</p>
<p>AJAX is not a new programming language, but a technique for creating better, faster, and more interactive web applications.</p>
<p>With AJAX, your JavaScript can communicate directly with the server, using the JavaScript XMLHttpRequest object. With this object, your JavaScript can trade data with a web server, without reloading the page.</p>
<p>AJAX uses asynchronous data transfer (HTTP requests) between the browser and the web server, allowing web pages to request small bits of information from the server instead of whole pages.</p>
<p>The AJAX technique makes Internet applications smaller, faster and more user-friendly.</p>
<p>lamp  AJAX is a browser technology independent of web server software.<br />
AJAX is Based on Web Standards</p>
<p>AJAX is based on the following web standards:</p>
<p>* JavaScript<br />
* XML<br />
* HTML<br />
* CSS</p>
<p>The web standards used in AJAX are well defined, and supported by all major browsers. AJAX applications are browser and platform independent.<br />
AJAX is About Better Internet Applications</p>
<p>Web applications have many benefits over desktop applications; they can reach a larger audience, they are easier to install and support, and easier to develop.</p>
<p>However, Internet applications are not always as &#8220;rich&#8221; and user-friendly as traditional desktop applications.</p>
<p>With AJAX, Internet applications can be made richer and more user-friendly.<br />
You Can Start Using AJAX Today</p>
<p>There is nothing new to learn.</p>
<p>AJAX is based on existing standards. These standards have been used by most developers for several years.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/introduction-to-ajax/" target="_blank" class="liimagelink"><img src="http://www.amaronline.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.amaronline.com/2008/11/introduction-to-ajax/" target="_blank" title="Share on Facebook" class="liexternal">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.amaronline.com/2008/11/introduction-to-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
