AJAX Flashcards

1
Q

What does AJAX stand for?

A

Asynchronous JavaScript XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does AJAX allow you to do?

A

AJAX allows you to update parts of a page without a reloading the entire page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Again, what does AJAX allow you to do?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an XMLHttpRequest object?

A

It’s a built-in browser object that requests data from a server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the XMLHttpRequest object used for?

A

The XMLHttpRequest object is used to request data from a server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does AJAX combine?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does AJAX work? What’s the workflow?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the core concepts of AJAX?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly