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 JavaScript Data Fetching!
You have completed JavaScript Data Fetching!
Preview
Quickly explore asynchronous JavaScript using AJAX and XMLHttpRequest. See how to make requests and handle responses using callbacks.
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
directly without needing
to reload the page every time.
0:00
This is called AJAX, which stands
for asynchronous JavaScript and XML.
0:02
Now what we're going to showcase
here is kind of a traditional way
0:08
of doing things,
so don't let it overwhelm you too much.
0:10
We're gonna get into the modern
approach next,
0:13
but it's important to at least be familiar
0:16
with these things in case you end up
working on some older legacy code bases.
0:18
And don't worry, we'll be using JSON,
not XML.
0:22
Before JSON became the standard,
0:26
a lot of APIs used something called XML,
0:28
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