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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Alexander Graham](https://secure.gravatar.com/avatar/21e909108b837e98454e3c7a5f51af93?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Alexander 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](https://uploads.teamtreehouse.com/production/profile-photos/11652095/micro_configuration.jpg)
josephweiss2
7,094 PointsCan you share your code to be able to understand what's going on?
![Samuel Kleos](https://uploads.teamtreehouse.com/production/profile-photos/11699126/micro_Square_Photo_-_Tahir.jpg)
Samuel Kleos
Front End Web Development Techdegree Student 13,118 PointsIt still doesn't work. How has your progress been? What courses/project do you suggest doing after this one?
![josephweiss2](https://uploads.teamtreehouse.com/production/profile-photos/11652095/micro_configuration.jpg)
josephweiss2
7,094 PointsShare your code so will be more possible to help you, Thanks