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 trialThorbjørn Bak Jensen
15,043 PointsMy list will not show
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
14,050 PointsI 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.
Yaser Aljaf
Courses Plus Student 2,221 PointsI think that AJAX Wont Work on chrome but in firefox is there a problem
Thorbjørn Bak Jensen
15,043 PointsThorbjørn Bak Jensen
15,043 PointsHi, 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
15,043 PointsThorbjørn Bak Jensen
15,043 PointsThanks 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
14,050 PointsMichal Weizman
14,050 PointsI 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.