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) jQuery and AJAX The Office Status Project Revisited

Thorbjørn Bak Jensen
Thorbjørn Bak Jensen
15,043 Points

My list will not show

https://w.trhou.se/j2yi7qce10

I have been staring down this code for an hour now and can really not see what is wrong. Can someone help? Its not loading in the sidebar

2 Answers

Michal Weizman
Michal Weizman
14,050 Points

I think the problem may occure because you are sending an undeclared var named "data" instead of the "response" you got from the server:

// edit: my bad. I guess this wasn't the problem :( But I just copied and pasted your code and it worked on my editor on chrome...

I hope this helped.

Thorbjørn Bak Jensen
Thorbjørn Bak Jensen
15,043 Points

Hi, Thanks, but unfortunately it does not help. Think that you can call the response parameter whatever you likes - just as long it is the same name. "response" and "data" should give the same result.

Thorbjørn Bak Jensen
Thorbjørn Bak Jensen
15,043 Points

Thanks for testing it worked in your browser. Just ran the code in Safari instead and it worked fine. Think its my chrome browser that fails - then one can think about how to fix that...

Michal Weizman
Michal Weizman
14,050 Points

I remember I had an issue like that in chrome - and deleting the cache helped me. But other than that - I have no idea how to fix it. Sorry I couldn't help.

I think that AJAX Wont Work on chrome but in firefox is there a problem