Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 622 Bytes
term description
Ajax
Originally an acronym, Asynchronous JavaScript and XML, allows the client to send & retrieve data from the server without reloading the page.

Ajax is not a single piece of technology but rather a group of related technologies that are used to create dynamic and interactive web applications. Most often XML is replaced with HTML or JSON as the data format.

var r = new XMLHttpRequest();
r.open("POST", "path/to/api", true);
r.onreadystatechange = function () {
  if (r.readyState != 4 || r.status != 200) return;
  alert("Success: " + r.responseText);
};
r.send("Non Stop!");