JPEG images sometimes don't display.

Discussion in 'Javascript' started by Ron Brennan, Sep 30, 2004.

  1. Ron Brennan

    Ron Brennan Guest

    Good evening.

    An HTML problem maybe, but one that I think can be solved with JavaScript.

    I have a page which is supposed to display several small JPEG images using
    elements like:

    <image src="SmallImages/image1.jpeg" height="40" width="30"></image>

    The image files are fine - I can open them reliably by double clicking in
    Windows Explorer. But in a browser sometimes they display properly and
    sometimes not and it's not always the same images that don't display.

    I'm betting this behavior and its solution is well known to at least hard
    core developers and I'd be quite appreciative if someone would give me a
    hand.

    Thank you,
    Ron.
     
    Ron Brennan, Sep 30, 2004
    #1
    1. Advertising

  2. It should be <img not <image. I don't know of any <image tag in HTML 4.01.

    It would be best to state the browser you are using where this happens. I have seen this often
    with virtually no explanation in Netscape and Mozilla.

    It can be Network difficulties (slow) it could be the domain the images are from is being blocked
    by your security (AV and the like).

    --
    George Hester
    __________________________________
    "Ron Brennan" <> wrote in message news:...
    > Good evening.
    >
    > An HTML problem maybe, but one that I think can be solved with JavaScript.
    >
    > I have a page which is supposed to display several small JPEG images using
    > elements like:
    >
    > <image src="SmallImages/image1.jpeg" height="40" width="30"></image>
    >
    > The image files are fine - I can open them reliably by double clicking in
    > Windows Explorer. But in a browser sometimes they display properly and
    > sometimes not and it's not always the same images that don't display.
    >
    > I'm betting this behavior and its solution is well known to at least hard
    > core developers and I'd be quite appreciative if someone would give me a
    > hand.
    >
    > Thank you,
    > Ron.
    >
    >
    >
    >
     
    George Hester, Oct 1, 2004
    #2
    1. Advertising

  3. Ron Brennan

    Ron Brennan Guest

    "George Hester" <> wrote in message
    news:0B07d.259379$...
    It should be <img not <image. I don't know of any <image tag in HTML 4.01.

    It would be best to state the browser you are using where this happens. I
    have seen this often
    with virtually no explanation in Netscape and Mozilla.

    It can be Network difficulties (slow) it could be the domain the images are
    from is being blocked
    by your security (AV and the like).

    --
    George Hester


    I did change the tag to <img and it still doesn't work. The browser is IE
    5.0. And it is probably not being blocked by anything because other images
    that are similar in all ways are getting through. I don't think it would be
    inappropriate to give the URL www.quick-trader.com It's going to be an
    on-line Want Ads service similar to eBay without the bidding. You'll notice
    that the first picture is not showing.

    Ron Brennan
     
    Ron Brennan, Oct 1, 2004
    #3
  4. Ron Brennan

    Ron Brennan Guest

    I haven't finished the fix but it appears that the problem was that the
    extension .jpg was being referenced as .JPG in parts of the system which
    were forgiving and in others that were not.

    Thanks for all the help.
     
    Ron Brennan, Oct 1, 2004
    #4
  5. Yes Ron watch the names of the jpg's. For example if a jpeg is named thus:

    40%20io.jpg you will not get anything. The %20 becomes a space and the name is not 40 io.jpg. So watch the
    naming. If you are having trouble with jpg and JPG that's interesting. Microsoft's Windows http server is not case
    sensitive.

    Lastly your site is down so I couldn't "see" what you are talking about.

    --
    George Hester
    __________________________________
    "Ron Brennan" <> wrote in message news:...
    > I haven't finished the fix but it appears that the problem was that the
    > extension .jpg was being referenced as .JPG in parts of the system which
    > were forgiving and in others that were not.
    >
    > Thanks for all the help.
    >
    >
     
    George Hester, Oct 1, 2004
    #5
  6. Ron Brennan

    Ron Brennan Guest

    "George Hester" <> wrote in message
    news:U437d.260570$...
    Yes Ron watch the names of the jpg's. For example if a jpeg is named thus:

    40%20io.jpg you will not get anything. The %20 becomes a space and the name
    is not 40 io.jpg. So watch the
    naming. If you are having trouble with jpg and JPG that's interesting.
    Microsoft's Windows http server is not case
    sensitive.

    Lastly your site is down so I couldn't "see" what you are talking about.

    --
    George Hester

    -------------------------------------------------------

    I'm implementing the fix this evening. My reason for thinking I've
    identified the problem is that when I changed the suffix to lowercase it
    worked fine. The problem might be in another part of the system.

    My server is in my living room and generally on from 8 AM to 9 PM Eastern
    time. I should have stated that. Sorry.
     
    Ron Brennan, Oct 2, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Saunders
    Replies:
    0
    Views:
    491
    John Saunders
    Aug 28, 2003
  2. Nehmo Sergheyev
    Replies:
    1
    Views:
    524
    Andrew Urquhart
    May 9, 2004
  3. Marcin Vorbrodt

    ::std sometimes needed, sometimes not

    Marcin Vorbrodt, Sep 16, 2003, in forum: C++
    Replies:
    24
    Views:
    801
    Jerry Coffin
    Sep 17, 2003
  4. Replies:
    1
    Views:
    526
    gkelly
    Nov 29, 2006
  5. Randy Smith
    Replies:
    2
    Views:
    478
    Randy Smith
    Apr 24, 2007
Loading...

Share This Page