AJAX Flashcards
What does AJAX stand for?
Asynchronous JavaScript XML
What does AJAX allow you to do?
AJAX allows you to update parts of a page without a reloading the entire page
Again, what does AJAX allow you to do?
AJAX allows web pages to update asynchronously by exchanging data with a server behind the scenes.
It exchanges data via the XHR object and its methods/properties
This makes it possible for you to update parts of a page without reloading the entire page
What is an XMLHttpRequest object?
It’s a built-in browser object that requests data from a server
What is the XMLHttpRequest object used for?
The XMLHttpRequest object is used to request data from a server
What does AJAX combine?
The use of a browser’s built-in XMLHttpRequest object to request data from a server
&
JavaScript & HTML DOM to update/display/use the data from the server
How does AJAX work? What’s the workflow?
An event occurs and an XHR object is created
The XHR object sends a request to the server
The server processes the request
The server sends a response
The response is processed by JS
Some action / callback occurs depending on the response/configuration for handling the response
What are the core concepts of AJAX?
AJAX allows you to update parts of a page with reloading the entire page
AJAX = Asynchronous JavaScript XML
The browser’s built-in XMLHttpRequest object is used to request data from a server
The browser + XHR object makes a request, the server processes + and responds, JS processes the response + some action occurs