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.
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.
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.