Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Previous Level FilePath

Reply
Thread Tools

Previous Level FilePath

 
 
Larry R Harrison Jr
Guest
Posts: n/a
 
      08-19-2004
If I have files in a folder and I need it to refer to a link in the PREVIOUS
folder, how do I have it do that?

I have been trying for HOURS--yes, HOURS--to figure this out, look for a
reference on the Internet. I am totally stuck.

So if I am in the photo_pages/files and I need it to "back up" to
photo_pages (NOT under "files") and refer to a file there, what would the
path look like?


 
Reply With Quote
 
 
 
 
lostinspace
Guest
Posts: n/a
 
      08-19-2004
----- Original Message -----
From: "Larry R Harrison Jr" <>
Newsgroups: alt.html
Sent: Thursday, August 19, 2004 11:26 AM
Subject: Previous Level FilePath


> If I have files in a folder and I need it to refer to a link in the
> PREVIOUS
> folder, how do I have it do that?
>
> I have been trying for HOURS--yes, HOURS--to figure this out, look for a
> reference on the Internet. I am totally stuck.
>
> So if I am in the photo_pages/files and I need it to "back up" to
> photo_pages (NOT under "files") and refer to a file there, what would the
> path look like?
>
>


"../photo_pages/index.html" (without parenthenses)


 
Reply With Quote
 
 
 
 
SpaceGirl
Guest
Posts: n/a
 
      08-19-2004
Larry R Harrison Jr wrote:
> If I have files in a folder and I need it to refer to a link in the PREVIOUS
> folder, how do I have it do that?
>
> I have been trying for HOURS--yes, HOURS--to figure this out, look for a
> reference on the Internet. I am totally stuck.
>
> So if I am in the photo_pages/files and I need it to "back up" to
> photo_pages (NOT under "files") and refer to a file there, what would the
> path look like?
>
>


.../myfile

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      08-19-2004
SpaceGirl wrote:

> Larry R Harrison Jr wrote:
>
>> If I have files in a folder and I need it to refer to a link in the
>> PREVIOUS
>> folder, how do I have it do that?
>>
>> I have been trying for HOURS--yes, HOURS--to figure this out, look for a
>> reference on the Internet. I am totally stuck.
>>
>> So if I am in the photo_pages/files and I need it to "back up" to
>> photo_pages (NOT under "files") and refer to a file there, what would the
>> path look like?
>>
>>

>
> ../myfile
>


or rather ../myfile.htm

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
Sam Hughes
Guest
Posts: n/a
 
      08-19-2004
"lostinspace" <> wrote in
news:UP3Vc.5385$ m:

> From: "Larry R Harrison Jr" <>
>
>> If I have files in a folder and I need it to refer to a link in the
>> PREVIOUS
>> folder, how do I have it do that?

>
> "../photo_pages/index.html" (without parenthenses)


You used quotation marks, not parentheses

When pointing to a index.html file, it is usually prettier to leave it
out, with "../photo_pages/".

--
How to make it so visitors can't resize your fonts:
<http://www.rpi.edu/~hughes/www/wise_guy/unresizable_text.html>
 
Reply With Quote
 
Art Sackett
Guest
Posts: n/a
 
      08-19-2004
Larry R Harrison Jr <> wrote:
> If I have files in a folder and I need it to refer to a link in the PREVIOUS
> folder, how do I have it do that?


Assuming a unixish file system or an emulation of one:

The current directory is referred to as ./ but is optional.

The parent directory, one level "up" the hierarchy, is ../

The parent of the parent directory is ../../

See the trend? The parent directory three levels up is ../../../

So, to hit the file index.html in the directory two levels up from the
current directory: ../../index.html (or maybe just ../../ if, as is
true in most cases, index.html is considered the default index
document.)

--
Art Sackett,
Patron Saint of Drunken Fornication
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      08-19-2004
Sam Hughes wrote:

> When pointing to a index.html file, it is usually prettier to leave it
> out, with "../photo_pages/".


Though "../photo_pages/" and "../photo_pages/index.html" might be two
entirely different files.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
how to request full filepath to a default page? darrel ASP .Net 0 06-24-2005 04:07 PM
Reposting question - How to pull filepath from SQL to use in slide =?Utf-8?B?UnVkeQ==?= ASP .Net 0 05-11-2005 03:48 PM
Filepath lookup from id Andreas Zita ASP .Net 2 02-28-2005 01:38 PM
current filepath? Lauchlan M ASP .Net 1 08-18-2003 12:04 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57