Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 04-03-2005, 16:00   #1 (permalink)
Arnie Goetchius
Civilians

 
Default Help on HTML and Relative URL's?

I am modifying some html code that was originally developed by someone else on a
MAC using Dreamweaver. The following line is an example of a some code that I'm
having a problem with:

<A HREF="../schedule.htm"> Scheduled Hours </A>

In my limited knowledge of HTML, ../ means look in one directory up for the file
schedule.htm. However, on my local PC, schedule.htm is in the current directory
so it can't be found. Perhaps there is some setting in Dreamweaver that makes it
work.

What I don't understand is if I upload this to a cpanel web-host in the
directory public_html, along with all of the other HTM files, it works okay.
That is, it appears that in cpanel the ../ is ignored and the code works okay.

Questions:

1. Why does it (the ../) work in cpanel but not on my local computer?

2. Is there some setting in Dreamweaver that allows this to work on a local
computer?

I know the simple answer to this is to go through all of the code and delete all
appearances of ../
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 04-03-2005, 16:00   #2 (permalink)
GreyWyvern
Civilians

 
Default Re: Help on HTML and Relative URL's?

On Sun, 03 Apr 2005 1133 -0400, Arnie Goetchius
<arnie.goetchius@att.net> wrote:

> 1. Why does it (the ../) work in cpanel but not on my local computer?


If such a link is online and is in the root directory, conforming clients
should see this and search for the file in the root directory. Failing
that, a conforming server should not let HTTP requests move above the
"public html" folder and thus should discard the "../".

When you put this link on your local computer, neither of these failsafe's
exist.

> 2. Is there some setting in Dreamweaver that allows this to work on a
> local computer?


I wouldn't know. It's best to fix the erronious link so it works properly
in both places, IMHO.

> I know the simple answer to this is to go through all of the code and
> delete all appearances of ../


You got it.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/webslavent?msg=149 - Presto the Puffin!
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-03-2005, 16:00   #3 (permalink)
Arnie Goetchius
Civilians

 
Default Re: Help on HTML and Relative URL's?

GreyWyvern wrote:

> On Sun, 03 Apr 2005 1133 -0400, Arnie Goetchius
> <arnie.goetchius@att.net> wrote:
>
>> 1. Why does it (the ../) work in cpanel but not on my local computer?

>
>
> If such a link is online and is in the root directory, conforming
> clients should see this and search for the file in the root directory.
> Failing that, a conforming server should not let HTTP requests move
> above the "public html" folder and thus should discard the "../".
>
> When you put this link on your local computer, neither of these
> failsafe's exist.
>
>> 2. Is there some setting in Dreamweaver that allows this to work on a
>> local computer?

>
>
> I wouldn't know. It's best to fix the erronious link so it works
> properly in both places, IMHO.
>
>> I know the simple answer to this is to go through all of the code and
>> delete all appearances of ../

>
>
> You got it.
>
> Grey
>


Thanks for the explanation. I'll fix it. It's a mystery to me how the original
author could have viewed this properly on a MAC.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-04-2005, 00:00   #4 (permalink)
Ben Jamieson
Civilians

 
Default Re: Help on HTML and Relative URL's?

On 2005-04-03 1259 -0400, Arnie Goetchius <arnie.goetchius@att.net> said:

> Thanks for the explanation. I'll fix it. It's a mystery to me how the
> original author could have viewed this properly on a MAC.




It's Mac, not MAC (MAC is a Media Access Control address, and relates
to ethernet hardware), but to answer your question, the developer was
most likely using Apache (standard on all Macs) which is a a
'conforming' server, and would handle the ../ removal properly.

just remove it completely and all should be good.

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2005, 12:00   #5 (permalink)
Arnie Goetchius
Civilians

 
Default Re: Help on HTML and Relative URL's?

Ben Jamieson wrote:
> On 2005-04-03 1259 -0400, Arnie Goetchius <arnie.goetchius@att.net>
> said:
>
>> Thanks for the explanation. I'll fix it. It's a mystery to me how the
>> original author could have viewed this properly on a MAC.

>
>
>
>
> It's Mac, not MAC (MAC is a Media Access Control address, and relates to
> ethernet hardware), but to answer your question, the developer was most
> likely using Apache (standard on all Macs) which is a a 'conforming'
> server, and would handle the ../ removal properly.
>
> just remove it completely and all should be good.
>


Okay, understand. Thanks for responding.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XHTML and the & in url's. nospam@geniegate.com Web Design 8 01-03-2005 08:00
Mobile Weather URL's Beverly Howard [Ms-MVP/MobileDev] Microsoft Applications 17 07-23-2004 20:41
Mobile Weather URL's Beverly Howard [Ms-MVP/MobileDev] Microsoft Applications 6 07-23-2004 19:15
Trying to create an HTML Parser using MS HTML Object Library (reference) AI-Pragma Web Design 0 06-15-2004 18:31


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 04:51.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.90054 seconds with 18 queries