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 trialMinh Le
Courses Plus Student 4,264 PointsI typed what Dave has but I don't have the same output. Can you please help me? https://w.trhou.se/dramznskhv
I typed what Dave has but I don't have the same output. Can you please help me? https://w.trhou.se/dramznskhv
5 Answers
Sean T. Unwin
28,690 PointsI've tried in Chromium and Firefox with similar results.
If the browser window is narrow enough the list will display below the paragraphs so you will have scroll down to see it.
Furthermore, have you looked at Chrome's Developer Tools (Ctrl + Shift + J) to see if there are any errors displayed? In the Console of the Dev Tools type, xhr
and see the results, particularly xhr.response
.
Sean T. Unwin
28,690 PointsYou're going up a level for the path of the JSON file:
xhr.open('GET', '../data/employees.json');
// ^-- Note the '../' segment at the beginning of the second parameter
/* Should be */
xhr.open('GET', 'data/employees.json');
Minh Le
Courses Plus Student 4,264 PointsHi Sean,
Thank you for your answer. But as you can see in my code, I do have what you suggested: xhr.open('GET', 'data/employees.json');
Sean T. Unwin
28,690 PointsWhat output are you getting?
I forked the Workspace and I am getting the expected output.
Minh Le
Courses Plus Student 4,264 PointsWow really! All I get is just the html paragraghs and no sidebars. Strange! Do you think it's the browser I am using? I use Google Chrome. Thanks so much for your help.
Minh Le
Courses Plus Student 4,264 PointsYou are right Sean. It's at the bottom of the page. Thank you very much for all your help. Is there something I need to do on this site to give you the credit for helping me? Thanks so much again.