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!
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
Alexander Graham7,965 Points
Using 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.
Samuel KleosFront End Web Development Techdegree Student 11,860 Points
It still doesn't work. How has your progress been? What courses/project do you suggest doing after this one?
Share your code so will be more possible to help you, Thanks