Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.html > #23986

Re: Wha' Hoppen?

From "Jukka K. Korpela" <jukkakk@gmail.com>
Newsgroups alt.html
Subject Re: Wha' Hoppen?
Date 2024-10-08 23:09 +0300
Organization A noiseless patient Spider
Message-ID <ve43hn$3md67$1@dont-email.me> (permalink)
References <hu58gj94g9o7tcpa7v61en3ti6irufn0f9@4ax.com>

Show all headers | View raw


Joy Beeson wrote:

> I have the folowing boilerplate at the bottom of the file for my diary
> < http://wlweather.net/LETTERS/2024BANN/2024BANA.HTM >
> 
> 
> <!--

That starts a comment, which ends at the next occurrence of “-->”. The 
content of a comment is ignored by browsers.
> I used it to add three photos to the October issue. 

What you probably mean is that you edited the code by removing the 
comment delimiters and editing the content somehow. It is always a good 
idea to post the URL of your actual page, instead of a template.

> On viewing the
> file with my browser, I couldn't see the pictures, but the link to the
> enlarged versions worked perfectly.

You probably changed <a href=".JPG"> to something else, which does not 
refer to an actual image either.

> Still "Can't find file:///C:/LETTERS/2024BANN/HANK6h76.JPG"

Now it is obvious that your actual code uses a file: URL, which is 
formally valid but almost never useful on web pages. There’s an old and 
dusty but still basically correct explanation of this on my page
https://jkorpela.fi/fileurl.html

Probably some authoring tool you used created such a URL. In that case, 
consider using a better tool. But you can probably make the tool create 
working code, or you can manually edit the code.

> So I validated it and got a complaint that there were three close
> paragraphs for paragraphs that were not open.

It’s useful to fix the markup, but those errors hardly had anything to 
do with the image proble,

> So I deleted them and now all is well.

There’s something missing from this story. For example, you may have 
done something that changed the <img ...> code.

> But how did an unwanted paragraph mark prevent the browser from seeing
> a file that was right in front of its nose?

It didn’t.

The key to the image issue is that the src attribute must refer to an 
image resource with a working URL. For example,
src="file:///C:/LETTERS/2024BANN/HANK6h76.JPG"
might work for a user whose system has a C drive with the folder LETTERS 
containing a subfolder 2024BANN containing a file named HANK6h76.JPG. 
Most probably this means that it only works for you when using a 
particularpersonal computer of yours.

The simplest way is to put the image in the same folder on the web 
server as the HTML document referring to it and use a simple relative 
reference like
src="HANK6h76.JPG"

Yucca


Back to alt.html | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Wha' Hoppen? Joy Beeson <jbeeson@invalid.net.invalid> - 2024-10-07 13:20 -0400
  Re: Wha' Hoppen? Ray_Net <Ray_Net@picarre.be.invalid> - 2024-10-08 00:58 +0200
  Re: Wha' Hoppen? "Jukka K. Korpela" <jukkakk@gmail.com> - 2024-10-08 23:09 +0300
  Re: Wha' Hoppen? Joy Beeson <jbeeson@invalid.net.invalid> - 2024-10-11 13:01 -0400
    Re: Wha' Hoppen? Joy Beeson <jbeeson@invalid.net.invalid> - 2024-10-11 13:29 -0400
      Re: Wha' Hoppen? "Jukka K. Korpela" <jukkakk@gmail.com> - 2024-10-12 20:41 +0300
        Re: Wha' Hoppen? Joy Beeson <jbeeson@invalid.net.invalid> - 2024-10-12 20:37 -0400
          Re: Wha' Hoppen? "Jukka K. Korpela" <jukkakk@gmail.com> - 2024-10-13 20:31 +0300
            Re: Wha' Hoppen? Joy Beeson <jbeeson@invalid.net.invalid> - 2024-10-13 20:38 -0400

csiph-web