Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.