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
In this video, you'll learn which formats web servers commonly send as a response to an AJAX request: plain text, HTML, and XML. Learn the basics of XML.
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
Web servers usually reply to AJAX requests
with a text response.
0:00
This could be a simple message, like okay,
or message received.
0:01
For instance, say you're using AJAX to
submit information from a form.
0:05
A user visits the web page, enters
information, and hits a submit button.
0:10
Instead of exiting the page, as you
normally do when you submit a
0:15
form, you could use AJAX to send the
form's information to the server.
0:17
After the server gets that data and does
something with it, like, you know,
0:22
adding it to a database, the web server
could send a simple text response.
0:25
Form submitted successfully, for example.
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