473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Specify href when target is more than one directory above?

106 100+
I know this is a stupid question...
But could somebody tell me how to specify in an Html <a href
how to say that the target' is one or more directories above?

Example:

www.example.com/myprofile/mypages/mypage.html

Let's say there is a directory in www.example.com/myprofile/mypages/october

I know that to specify a document on october, from mypage.html I do this:
<a href="../october/document.html">

But How to specify a document on myprofie directory?
(besides using http://www.example.com/myprofile/document.html)

thank you.
Jun 20 '10 #1

✓ answered by drhowarddrfine

Using the dot mechanism, everything is relative to where you are at the moment. Two dots means "the directory above". One dot means relative to the current directory you are in. The first slash means "from the root".

So ../.. means the directory above the directory above where I'm currently at. ./myfile means the 'myfile' in the directory I'm in.

2 17500
drhowarddrfine
7,435 Expert 4TB
Using the dot mechanism, everything is relative to where you are at the moment. Two dots means "the directory above". One dot means relative to the current directory you are in. The first slash means "from the root".

So ../.. means the directory above the directory above where I'm currently at. ./myfile means the 'myfile' in the directory I'm in.
Jun 20 '10 #2
londres9b
106 100+
thank you so much for your help!
Jun 20 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: c | last post by:
RH9, Apache 2.0.49, php 4.3.6 been away from php for about 2 years and this way used to work, still does in older php versions, now it doesn't. is there a reason for this? a work around? Thanx...
2
by: The Roys | last post by:
Hi I have a need to be able to simulate a d/click on a Dir box item. When a certain event occurs I want the program to open up the directory above the current one selected and refresh. I can...
1
by: ad | last post by:
I use the code below to export the content of a data set to Excel, the code come form http://www.dotnetjohn.com/articles.aspx?articleid=36 But it always use the web form's name as the default...
6
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
4
by: Don | last post by:
Let's say I have a type name stored in a string (e.g. Dim typeName As String = "Decimal"). Is it possible to CType() a variable to the type whose name is stored in that string? e.g. Dim...
1
by: gilad | last post by:
hi, I'm using httpmodules and it seems that when using more than one application while doing load test, start events are sometimes being skipped. I'm printing to log file start/end events with...
5
by: 205210864 | last post by:
how do i specify coordinates when using write#. need to write at specific coordinate sin a file. eg. heading, starting at column 3 row 4. please ,please help
1
by: Schraalhans Keukenmeester | last post by:
A few of my customers have access to a simplified web-based ftp client to their relative root directories, all subdirs of my main domain root. Most of the code in my ftp class seems pretty...
9
by: Julie Smith | last post by:
Hi, Is it just me or does the search pattern parameter in Directory.GetFiles() have a problem with the '?' character? '*.*' works to find all files, but '?.*' does not work to find all files...
0
by: Uwe | last post by:
Hi, I'm currently developing an ASP.NET application with my own MembershipProvider. Login works fine on my local machine (IIS7) in a virtual directory of IIS. I just deployed the application to a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.