Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 JAN 2005 09:02:44PM Robert Lee wrote:

Hi all

I am using OI 7.10 and Apache 2.0.52 to migrate my app to HTML.

I started with my log-in screen. I used the HTML publisher and it created an ugly, but functional screen. I then decided to improve the look by using DreamWeaver to add an image. It created the following HTML:

l4l-logo.jpg

I then saved it and test ran the modified page from DreamWeaver and it looks nice.

However, when I go to my webpage http://127.0.0.1 and click the Log-in Link, it displays my improved log-in page, but the logo doesn't display.

I am wondering if the problem relates to the path for the file, although I understand the <img src= defaults to the same directory the HTML file is stored in (which is OINSIGHT\HTML). Rather than use the CGI-BIN approach, I just aliased /OI/ to the Oinsight directory.

Any thoughts anyone?

Robert Lee


At 04 JAN 2005 04:00AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Robert

What is your src attribute actually set to? We usually have an images directory off the web-server root which we reference in our OECGI pages like this:

src=/images/somepic.jpg"

This forces the browser to reference the image from the actual root of the target server rather than relative to the directory where the page was loaded from.

The Sprezzatura Group

World Leaders in all things RevSoft


At 05 JAN 2005 04:51PM Robert Lee wrote:

Hi Sprezz

]What is your src attribute actually set to?

Um. What src attribute? Sorry, I'm new to this.

I don't really mind at this stage where the image directory goes. I have tried putting the image everywhere I can think of, but it still refuses to display - including \OINSIGHT, \OINSIGHT\HTML, \Apache2\htdocs

The login page is being linked like this:

http://127.0.0.1/oi/oecgi.exe/INET_REPOS?DOC_ID=INET_L4L_LOGIN

Don't know if that information helps.


At 06 JAN 2005 04:02AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Robert,

Sorry, I meant the src attribute of the img tag… e.g.

 [img]/images/pic1.jpg[/img]

OK, for testing purposes try creating an images directory beneath your web-server root folder. So if your web-server has a root folder like so:

 c:\website

Create a folder called

 c:\website\images

And copy your images to it (You can create images as a virtual folder if you like - doesn't have to be a 'physical' one.)

The try calling your image directly from the browser…

 http://127.0.0.1/images/pic1.jpg

If that works then alter the src attribute of the img on your login page like so:

 [img]/images/pic1.jpg[/img]

You should then see your image. Note the use of "/" over "\". This is not so important when dealing with MS browsers and web-servers. It usually *is* important to others.

The Sprezzatura Group

World Leaders in all things RevSoft


At 07 JAN 2005 03:54AM Robert Lee wrote:

Thanks Sprezz

I created an image folder in \Apache\Apache2\htdocs\mywebsite and the image was magically found.

I guess with the HTML coming from the /OInsight/html folder, it seemed to make sense the jpg file would come from the same place. I must need a holiday. How's London this time of year .

R


At 07 JAN 2005 06:14AM support@sprezzatura.com wrote:

Cold and beautiful! And the view from our office windows is cool - checkout the last SENL :)

support@sprezzatura.com

The Sprezzatura Group Web Site

World Leaders in all things RevSoft

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/2b76a883d414b49485256f7f000b3ce6.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1