Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

absolute or document relative link? 2

Status
Not open for further replies.

FreddieZed

Technical User
May 25, 2001
32
US
I am using DW4 for windows 98

I am atemping to insert a flash button into a templatei clicked inster flash button and the window poped up. I have browsed for a link for this object from my files, but when I click apply i get a caution window that says the following:
"clients.htm" is a site-revative link. Please use an abolute or document-relaive link.

What am i doing wrong? I dont understand what a site-revative or document-relative means.

can anyone point me in the right direction?
FZ
 
Hey Freddie,

'Document Relative' means that the path to the image is determined from the location of the current page. For example if your directory structure is like this:

Main Folder
I
Pages Folder
I
Images Folder

Then a document relative link from a page to an image would be something like this /images/image1.gif
Note there's no ' within this link, because it knows to start looking from where the page is located. This way means that all your images should be visible when you preview the page locally. Document relative links can only therefore be created when the page has been saved, and dreamweaver will insert a 'temporary' link until this has been done. (it should give you a message telling you this if you try and insert a document-relative link before you have saved it).

A Site-relevant link means that the page/image/SWF/whatever is located by the browser by starting at the root of the web server and looking for it on there. This means that the images will only be visible when viewed uploaded and online, as there is no server present when viewed locally. Try uploading your pages and they should work fine. The Dreamweaver manual recommends using Site-relative links for larger sites as they are 'more professional' and easier to manage.

An Absolute Link means the link includes the whole address of the file. This means that the images will only be displayed during local viewing when an internet connection is present, as the browser searches for the files from the web rather than the local machine.

Any of these links should work fine when the pages are all uploaded to the web. Its really up to personal preference which sort you use, and each offers slightly different advantages. Personally, i tend to use document relative links as this means images and flash files always show up when i preview pages locally.

Hope this sorts of some of your confusion ;-)

Nick Price
nick.price@misuk.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top