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 trialAlexander Graham
7,966 PointsUsing the path ../data/employees.json in the GET method doesn't work
So in the previous video the teacher uses the path data/employees.json path in the GET method "xhr.open('GET', 'data/employees.json');" but now he is adding the parent directory "../". If I include this in my Ajax request it doesn't work. Can someone explain why he has included it in this video and it seems to be working for him? Thanks
By the why the .js file, for the code below, is in a folder which is at the root directory with the "data" folder too. So it would make since to write ../data/employees.json in the GET method. But I don't understand why this does not work.
2 Answers
josephweiss2
7,094 PointsCan you share your code to be able to understand what's going on?
Samuel Kleos
Front End Web Development Techdegree Student 13,307 PointsIt still doesn't work. How has your progress been? What courses/project do you suggest doing after this one?
josephweiss2
7,094 PointsShare your code so will be more possible to help you, Thanks