Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript AJAX Basics (retiring) AJAX Concepts A Simple AJAX Example

Christopher R
Christopher R
1,441 Points

On my MacPro, the example files in the Workspace aren't showing any buttons on initial load.

There are no Chrome console errors. All I see is the text "Bring on the Ajax".

Can you inspect element and see if the <button> element is there?

3 Answers

Can you check your index.html file in the work space to see if your button reads like this:

<button id="load" onclick="sendAJAX()">Bring It!</button>

Maybe it was accidently deleted then saved?

Christopher R
Christopher R
1,441 Points

The div id="ajax" tag is there, but there's nothing between it and the close div tag.

Christopher R
Christopher R
1,441 Points

It's not there in example2.html when I do a Preview. But the button is there in the workspace file. In fact, if I change the Bring on the AJAX text, save it in the Workspace, then hit the preview eye, that change isn't being reflected on the page at all. The Workspaces have worked for me in other non-AJAX javascript lessons.