AJAX Tutorial*

*BY READING THIS, I AGREE TO NOT REFRESH ANYTHING MORE THAN ONCE A SECOND. I ALSO AGREE TO NOT CALL ANYTHING I MAKE A "CHAT ROOM"

Asynchronous Javascript and XML

Ajax is a collection of tools that allows you to receive and send information from the server. Without it, to do any interaction with the server, the page would have to refresh every time it wanted to send something. Imagine if websites like Facebook or Twitter couldn't load information without refreshing.

The term AJAX is a bit of a misnomer. Most of the time, people transfer data to and from servers by means of pure HTML or JSON, or Javascript Object Notation. JSON is a more compact version of XML, and is easier to use with Javascript as the syntax is the same as a Javascript object. An example is provided below

	//XML: 
	<person>
		<name>Ernie</name>
		<contact>
			<email>ernie@bert.com</email>
			<number>1800-SHOODOR</number>
		</contact>
	</person>
This same thing in JSON would be
	{
		"name": "Ernie",
		"contact": {
			"email": "ernie@bert.com",
			"number": "1800-ERNESTE"
		}
	}
To set up a