Locked lesson.
About this lesson
How to handle an AJAX response.
Exercise files
Download this lesson’s related exercise files.
AJAX Response.docx59.3 KB AJAX Response - Solution.docx
59.9 KB
Quick reference
AJAX Response
Let's decipher the AJAX Ready State response.
When to use
Use this whenever you use AJAX.
Instructions
There are five ready states:
0 request not initialized
1 server connection established
2 request received
3 processing request
4 request finished
Please note: AJAX requires a web server to run. If you want to try running AJAX code on your own, it won't work locally, but it will work on a real website with an active server.
Hints & tips
- There are five ready state codes (0 to 4)
Lesson notes are only available for subscribers.