ID:23945
Dec 9 2006, 2:01 am
|
|
I've tried googling it, but looking through over 10 pages, and still no luck. I have seen ../ being used in the source of a couple of websites, as well as tutorials for flash I have been checking out. Since there are a lot of web developers, as well as flash developers, I guess a few people here would know.
|
Copyright © 2025 BYOND Software.
All rights reserved.
Now, to explain that in plain English:
Say you've got a website that's broken up into multiple folders/directories (yourdomain.com/onefolder, yourdomain.com/theotherfolder, yourdomain.com/athirdfolder, etc) You're working on a page inside one of the directories (/onefolder), but you need to access a file (page, image, etc) that's in one of the other directories (theotherfolder)
One way to do this is to just type out the full, direct URL to that file: "http://www.yourdomain.com/theotherfolder/picture.jpg"
Another way is to use a relative path:
"../theotherfolder/picture.jpg"
That ../ tells it to look for "theotherfolder" inside of the directory one level up from where you're currently at (which would be the main directory for the entire site in this example)
This also works through multiple levels... If you've got a directory structure that goes through something like "yourdomain.com/onefolder/files/images/", you can get at something inside of "yourdomain.com/otherfolder/files/images/" by using "../../../otherfolder/files/images/"