Relative Path

By miapoohfox ·
I am creating program to display a list of all subfolders in a folder. what i want is to create a relative path to the parent folder, but i am not sure how to do that. something similar to what u would do with images (~/Images/img.jpg). Can someone please help me.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Relative path is from where the

by Tony Hopkinson In reply to Relative Path

web page you are on is located.
Best bet is probably not to make the filename an anchor, but trap the click on it, pick up the value, prefix it with the file://AbsolutePathToParent/ and then open that.

PS you are reinventing a wheel here, this might give some clues

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums