JavaScript AJAX Basics (retiring) AJAX Concepts A Simple AJAX Example

Pitrov Secondary
Pitrov Secondary
5,119 Points

I didnt understand that readystate thing

Why did he type in 4 at the readystate thing? how does the numbers work? at 6:00

3 Answers

Adam Beer
Adam Beer
11,270 Points

Hi! State 4 mean that the request has been sent and server finish returning the response and browser has finished download the response content. So, it is right to say that AJAX call has completed.

Pitrov Secondary
Pitrov Secondary
5,119 Points

So every number does something? how many numbers does something?