Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Program your first AJAX request using JavaScript. You'll use AJAX to load HTML into a div tag on a web page.
Workspaces
Workspaces is a Treehouse tool that allows you to write code. Because it runs through a real web server, you can use Workspaces to send AJAX requests and receive responses.
If you're having technical issues with Workspaces, please visit our support page and let us know about the problem. We're always happy to help.
Setup a Development Server
To test AJAX requests locally, on your own computer, you'll need to setup a development server, and preview your pages from your computer using a URL like: http://localhost/
Treehouse has a couple of videos helping you set this kind of development environment:
You need to sign up for Treehouse in order to download course files.
Sign up