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, I'll explain how I solved the challenge for this stage. Learn how to make multiple AJAX requests on the same page.
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
First thing I'll do is make
a copy of the original code, and
0:00
paste it at the bottom
of the widget.js file.
0:00
When making multiple AJAX requests,
you should create separate xhr objects for
0:11
each request, but they do need to
have different variable names.
0:16
I'll just replace xhr
here with roomRequest.
0:21
That means I also need to change
0:27
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