File refererence relative to ROOT

R

rfr

Is there an internal setting that willl allow FrontPage 2003 to properly
display images where the URL address is [
src="/historical/images/worthington_minn_705x450.jpg" ]
rather then [ src="../images/worthington_minn_705x450.jpg" ]

The first versions works well in browsers, but does not work in FP 2003
display or preview mode.

I prefer the relative to root addressing. Using this method makes it easier
to move modules of code between directories and sub-webs.

Is there a way to get Frontpage 2003 to utilize realtive to ROOT addressing
properly in Display and Preview mode?
 
T

Thomas A. Rowe

There is no setting in FP to change/control this.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
R

rfr

Thank you for the response.

Is there some "work-around" that pople are using to help with this?
Thomas A. Rowe said:
There is no setting in FP to change/control this.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


rfr said:
Is there an internal setting that willl allow FrontPage 2003 to properly
display images where the URL address is [
src="/historical/images/worthington_minn_705x450.jpg" ]
rather then [ src="../images/worthington_minn_705x450.jpg" ]

The first versions works well in browsers, but does not work in FP 2003
display or preview mode.

I prefer the relative to root addressing. Using this method makes it
easier to move modules of code between directories and sub-webs.

Is there a way to get Frontpage 2003 to utilize realtive to ROOT
addressing properly in Display and Preview mode?
 
R

rfr

If your HTML document is within the subweb /Okabena, and the files you need
to get images for are at /historical/images, then you will need that lead
"/" to get the search to start at the server root. Otherwise it will
unsuccefully look for the file at /Okabena/historical/images

This relative to root method is also the way to get access to files common
to many subwebs and kept in a folder in the ROOT such as images which can be
referenced from any subweb as /Images.

But, as I mentioned, FP 2003 does not display those images in either DISPLAY
or PREVIEW mode.

The other method I know around this is to hard code all URL's that go
outside the web to the server such as
http://www.wgtn/net/Images/black_arrow.gif. This goes too far and even
further complicates the developement stages, especially the trial and error
stages.

Oh dang.


Steve Easton said:
Remove the leading slash:
src="/historical/images/worthington_minn_705x450.jpg"
tells FP to look up one more level above historical. Try this
src="historical/images/worthington_minn_705x450.jpg"


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm



rfr said:
Is there an internal setting that willl allow FrontPage 2003 to properly
display images where the URL address is [
src="/historical/images/worthington_minn_705x450.jpg" ]
rather then [ src="../images/worthington_minn_705x450.jpg" ]

The first versions works well in browsers, but does not work in FP 2003
display or preview mode.

I prefer the relative to root addressing. Using this method makes it
easier to move modules of code between directories and sub-webs.

Is there a way to get Frontpage 2003 to utilize realtive to ROOT
addressing properly in Display and Preview mode?
 
R

Ronx

Perhaps not the workaround you are looking for - I use server based webs
for development.
When using disc based webs, the only way you can see images etc. in a
subweb when the images are located in the main web (or even some other
folder in the subweb) is to use relative links such as ../images/pic.jpg
Unfortunately, this will fail in SSI files or external JavaScript when
different folder levels are involved since FrontPage cannot manage these
links. Same applies to cut-and-paste chunks of code.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp



Thank you for the response.

Is there some "work-around" that pople are using to help with this?
Thomas A. Rowe said:
There is no setting in FP to change/control this.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


rfr said:
Is there an internal setting that willl allow FrontPage 2003 to properly
display images where the URL address is [
src="/historical/images/worthington_minn_705x450.jpg" ]
rather then [ src="../images/worthington_minn_705x450.jpg" ]

The first versions works well in browsers, but does not work in FP 2003
display or preview mode.

I prefer the relative to root addressing. Using this method makes it
easier to move modules of code between directories and sub-webs.

Is there a way to get Frontpage 2003 to utilize realtive to ROOT
addressing properly in Display and Preview mode?
 
T

Thomas A. Rowe

Since I work with Server based ASP/VBscript web sites, I create a variable to hold a absolute URL.

Example of an ASP SSI inserted in every page:

<%
Site = " http://www.Ecom-Data.com " (this line is used on my live/remote server)
'Site = " http://EcomData " (this line is used on my local server)
%>

Note: The space after and before the " is because OE would remove the " otherwise.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


rfr said:
Thank you for the response.

Is there some "work-around" that pople are using to help with this?
Thomas A. Rowe said:
There is no setting in FP to change/control this.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


rfr said:
Is there an internal setting that willl allow FrontPage 2003 to properly
display images where the URL address is [
src="/historical/images/worthington_minn_705x450.jpg" ]
rather then [ src="../images/worthington_minn_705x450.jpg" ]

The first versions works well in browsers, but does not work in FP 2003 display or preview mode.

I prefer the relative to root addressing. Using this method makes it easier to move modules of
code between directories and sub-webs.

Is there a way to get Frontpage 2003 to utilize realtive to ROOT addressing properly in Display
and Preview mode?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top