× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: eRPG; where are my images
  • From: boldt@xxxxxxxxxx
  • Date: Fri, 23 Jun 2000 13:27:53 -0400



John wrote:
>I've been writing some RPG-CGI programs(very neat stuff)  but I'm
>having a problem of the browser finding my Images(image.gif)   on
>my <IMG SRC="image.gif">  statement.   How do I point my HTTP
>config to the right IFS directory for the browser to find the image
>file??    Is it a MAP or PASS statement in my HTTP config?

Well, strictly speaking, this question has nothing to do
with the implementation language.  Also, if I'm not mistaken,
I don't think this has much (or anything) to do with the
configuration of the server.

Let's say the URL of your web page (or CGI program) is
"http://www.abc.to/dirname/page.xyz".  Your *browser* will
request the image from URL "http://www.abc.to/dirname/image.gif".
This is all defined in the HTTP spec.

Other examples:

- If you coded <img src="images/image.gif">, the browser would
  send a request for "http://www.abc.to/dirname/images/image.gif".

- If you coded <img src="/images/image.gif">, the browser would
  send a request for "http://www.abc.to/images/image.gif".

Where these files reside on the server system is, of course,
defined by the server configuration.  But in this situation, if
you coded <img src="image.gif">, I would expect the image file
should be in the same directory as the html file or the cgi
program.

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.