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

General Discussion

Quick question, folder location

If I'm on a file that's on the first level in the folder. example. first.php And my jQuery file is in the second level. example. js/first.js Which uses ajax to call another php file in a second level example. ajax/ajaxfile.php

In my jQuery ajax url is it. "ajax/ajaxfile.php" or "/ajax/ajaxfile.php" or "../ajax/ajaxfile.php"

At the moment I'm using "../ajax/ajaxfile.php" And it's working. thanks guys, I know this is an elementary question but I'm not 100% certain.