Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed AJAX Basics!
You have completed AJAX Basics!
Preview
Dig deeper into AJAX callbacks -- how they work and ways to check for errors from the server.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
But first, let's review the basics of
AJAX.
0:00
As you learned in the last stage, there
are four steps to an AJAX request.
0:01
First, create an XMLHTTP request object.
0:05
Second, create a callback function.
0:09
Third, open the request, and fourth, send
the request.
0:13
Most of the fun and most of
0:18
the programming happens in the callback
function.
0:19
A callback is the programming you want to
0:22
run when the server sends back its
response.
0:24
It's the programming that does something
with that
0:27
response like presenting a form's
successfully submitted message,
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up