Date:  03/03/2006 12:53:50 PM Msg ID:  002857
From:  FoxWeb Support Thread:  002854
Subject:  Re: Why image cannot be displayed?
Please pay attention to the difference between relative and absolute URLs (explained in the Locating and Addressing Scripts page).  The example that you provided (images/myImage.PNG) is a relative URL, because it does not start with a slash.
 
To answer your question, read access is necessary for all directories that contain static files (for example HTML files and images) that need to be served by your Web server.  Please note that we can't provide any support on how to configure your Web server.

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 03/03/2006 08:49:28 AM:
Thanks for you reply. The image eventually can be seen now.
You know how I resolved this?
 
Web Root: C:\inetpub\wwwroot\
FoxWeb Program Root: c:\Program Files\FoxWeb\Programs
Script Location: D:\Test\
 
I copied the static file myImage.PNG to C:\inetpub\wwwroot\images\
It still does not show if I use:
<img border="0" src="images/myImage.PNG" width="342" height="64">
although you can see the image in the design page of the MS Frontpage.
 
I opened the Home Directory page of the Default Web Site Properties in the IIS screen and found the "Read" box was unchecked. I checked it and clicked Apply and Save. It can be shown now, although the Preview page of MS Frontpage could not display the image.
 
Not sure if the "Read" box is supposed to be checked.
 
 
 
 
 
FoxWeb scripts are not usually in a Web-accessible folder, so all static files, such as images, should be placed in a different folder under the Web tree.  You should probably be using absolute URLs.  For example, let's say that your Web root is c:\inetpub\wwwroot and that you saved your image in c:\inetpub\wwwroot\images\bd18220_.wmf.  In order to reference this image from a FoxWeb script you need to use the following:
 
<img border="0" src="/images/BD18220_.wmf">
 
Alternatively, you can place images and other static files in a folder that has the same relative path from the web root that your scripts have from the FoxWeb Program Root.  Example:
 
FoxWeb Program Root: c:\Program Files\FoxWeb\Programs
Script Location: c:\Program Files\FoxWeb\Programs\MyApp\MyScript.fwx
Web Root: c:\inetpub\wwwroot
Image Location: c:\inetpub\wwwroot\MyApp\bd18220_.wmf
 
In order to call your script you would use:
 
 
Your image tag could be either one of the following:
 
<img border="0" src="/MyApp/BD18220_.wmf"> (absolute URL)
<img border="0" src="BD18220_.wmf"> (relative URL)
 
For details on this whole subject please refer to the Locating and Addressing Scripts page in the FoxWeb documentation.

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 03/02/2006 01:04:45 PM:
I created a blank page. Copied and pasted a MS clip image to the page. Between the <body> tags are the line.
 
<p><img border="0" src="BD18220_.wmf" width="308" height="275"></p>
 
I saved the file as test.html. It displays perfectly in the IE browser.
But when I saved the page as test.fwx, the image cannot be displayed. Just a little red cross in the top left corner.
 
Anything I have to do on the FoxWeb side?  Thank you in advance.
 
Larry