why won't my image appear?

Discussion in 'HTML' started by John Salerno, Apr 8, 2006.

  1. John Salerno

    John Salerno Guest

    Here's the link, if it helps: http://python.johnjsalerno.com/

    I have the Python logo set at the top of the page, but the alternate
    text gets displayed instead. I have the image in the right place, as far
    as I can tell. It's in the icons directory, which is one level above the
    directory where this index file is. Does it matter that it's a
    subdomain? It's pointed to a 'python' directory, which is in my main
    server space, along with the 'icons' directory also.
    John Salerno, Apr 8, 2006
    #1
    1. Advertising

  2. John Salerno wrote:

    > Here's the link, if it helps: http://python.johnjsalerno.com/
    >
    > I have the Python logo set at the top of the page, but the alternate
    > text gets displayed instead. I have the image in the right place, as far
    > as I can tell. It's in the icons directory, which is one level above the
    > directory where this index file is. Does it matter that it's a
    > subdomain? It's pointed to a 'python' directory, which is in my main
    > server space, along with the 'icons' directory also.


    Try this for the
    <img src="http://johnjsalerno.com/icons/python-logo.gif"

    --
    -bts
    -Warning: I brake for lawn deer
    Beauregard T. Shagnasty, Apr 8, 2006
    #2
    1. Advertising

  3. John Salerno wrote:

    > Here's the link, if it helps: http://python.johnjsalerno.com/
    >
    > I have the Python logo set at the top of the page, but the alternate text
    > gets displayed instead. I have the image in the right place, as far as I
    > can tell. It's in the icons directory, which is one level above the
    > directory where this index file is. Does it matter that it's a subdomain?
    > It's pointed to a 'python' directory, which is in my main server space,
    > along with the 'icons' directory also.


    I dunno, but http://python.johnjsalerno.com/icons/python-logo.gif sure
    throws a 404. Is it kosher to have nothing but an image in a header?


    --
    Blinky RLU 297263
    Killing all posts from Google Groups
    The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
    Coming Soon: Filtering rules specific to various real news clients
    Blinky the Shark, Apr 8, 2006
    #3
  4. John Salerno

    John Salerno Guest

    Blinky the Shark wrote:
    > John Salerno wrote:
    >
    >> Here's the link, if it helps: http://python.johnjsalerno.com/
    >>
    >> I have the Python logo set at the top of the page, but the alternate text
    >> gets displayed instead. I have the image in the right place, as far as I
    >> can tell. It's in the icons directory, which is one level above the
    >> directory where this index file is. Does it matter that it's a subdomain?
    >> It's pointed to a 'python' directory, which is in my main server space,
    >> along with the 'icons' directory also.

    >
    > I dunno, but http://python.johnjsalerno.com/icons/python-logo.gif sure
    > throws a 404. Is it kosher to have nothing but an image in a header?
    >
    >


    Yeah, that could be part of the problem. python.johnjsalerno.com points
    to the 'python' folder on my server, but the 'icons' folder is not a
    part of that folder, it is also in the main area with the python folder.
    But the img src attribute goes up one level in the hierarchy, so I don't
    see why that would be a problem, if it is.
    John Salerno, Apr 8, 2006
    #4
  5. John Salerno

    John Salerno Guest

    Beauregard T. Shagnasty wrote:
    > John Salerno wrote:
    >
    >> Here's the link, if it helps: http://python.johnjsalerno.com/
    >>
    >> I have the Python logo set at the top of the page, but the alternate
    >> text gets displayed instead. I have the image in the right place, as far
    >> as I can tell. It's in the icons directory, which is one level above the
    >> directory where this index file is. Does it matter that it's a
    >> subdomain? It's pointed to a 'python' directory, which is in my main
    >> server space, along with the 'icons' directory also.

    >
    > Try this for the
    > <img src="http://johnjsalerno.com/icons/python-logo.gif"
    >


    I'd rather not use absolute links though.
    John Salerno, Apr 8, 2006
    #5
  6. John Salerno

    Neredbojias Guest

    To further the education of mankind, John Salerno
    <> declaimed:

    > Does it matter that it's a subdomain?


    Absolutely. Beauregard's url should work.

    --
    Neredbojias
    Infinity can have limits.
    Neredbojias, Apr 8, 2006
    #6
  7. In article <44373e80$0$4205$>,
    John Salerno <> wrote:

    > Here's the link, if it helps: http://python.johnjsalerno.com/
    >
    > I have the Python logo set at the top of the page, but the alternate
    > text gets displayed instead.


    Not in my browser. I get a 'question mark image' instead. Nothing
    alternate at all. If alternate pops up for you, it's because the alt
    attribute is set and Explorer thinks it's the title attribute. Try
    another browser to see that the alternate text does not get displayed,
    unless you're using Lynx.

    > I have the image in the right place, as far
    > as I can tell.


    I don't think you do. Or the permissions may be set incorrectly.

    > It's in the icons directory, which is one level above the
    > directory where this index file is.


    Normally, that would be one level *below* where the index file is. You
    probably have a permissions problem.

    > Does it matter that it's a
    > subdomain?


    I don't know.


    > It's pointed to a 'python' directory, which is in my main
    > server space, along with the 'icons' directory also.


    You are not serving from the normal hierarchy. I suggest you do. This is
    a solvable problem. You are not serving from the right directory or your
    permissions are wrong. Pointed to correctly, and image will be
    displayed.

    leo

    --
    <http://web0.greatbasin.net/~leo/>
    Leonard Blaisdell, Apr 8, 2006
    #7
  8. In article <PdHZf.71131$>,
    "Beauregard T. Shagnasty" <> wrote:

    > Try this for the
    > <img src="http://johnjsalerno.com/icons/python-logo.gif"


    I really should read *all the following posts* before responding. But
    that wouldn't be any fun :)

    leo

    --
    <http://web0.greatbasin.net/~leo/>
    Leonard Blaisdell, Apr 8, 2006
    #8
  9. John Salerno

    Jim Moe Guest

    John Salerno wrote:
    > Here's the link, if it helps: http://python.johnjsalerno.com/
    >
    > I have the Python logo set at the top of the page, but the alternate
    > text gets displayed instead.
    >

    src="../icons/python-logo.gif"
    Yes, it is because you are in a subdomain. Its DocumentRoot (using
    apache terminology) does not share the same space as the main domain. You
    are asking to go to a directory that is higher (more "rooty", a
    super-root?) than the root directory of the subdomain.

    1. Create an icons directory from the subdomain's DocumentRoot, place the
    image there
    2. Place the image in the subdomain's DocumentRoot
    3. Use a fully qualified URL as noted by others
    4. Check your server's docs; there may be a way to allow the access anyway

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)
    Jim Moe, Apr 8, 2006
    #9
  10. John Salerno

    John Salerno Guest

    John Salerno wrote:
    > Here's the link, if it helps: http://python.johnjsalerno.com/
    >
    > I have the Python logo set at the top of the page, but the alternate
    > text gets displayed instead. I have the image in the right place, as far
    > as I can tell. It's in the icons directory, which is one level above the
    > directory where this index file is. Does it matter that it's a
    > subdomain? It's pointed to a 'python' directory, which is in my main
    > server space, along with the 'icons' directory also.


    Thanks guys! I guess I was ignorant of how subdomains worked! :)
    John Salerno, Apr 8, 2006
    #10
  11. On Fri, 07 Apr 2006 22:52:25 -0700, Jim Moe
    <> wrote:

    >John Salerno wrote:
    >> Here's the link, if it helps: http://python.johnjsalerno.com/
    >>
    >> I have the Python logo set at the top of the page, but the alternate
    >> text gets displayed instead.
    >>

    > src="../icons/python-logo.gif"
    > Yes, it is because you are in a subdomain. Its DocumentRoot (using
    >apache terminology) does not share the same space as the main domain. You
    >are asking to go to a directory that is higher (more "rooty", a
    >super-root?) than the root directory of the subdomain.


    I thought that it might be a security issue (accessing beneath the root
    for the subdomain) but I have seen pages that request files (e.g. CSS)
    that are lower (more "rooty"). I checked with Opera and it drops the
    leading '..' when building the URL for the image. This doesn't happen
    in the other cases I have seen as they have a path after the domain
    name. So the '..' must be processed by the browser rather than being
    passed back to the server. If the browser can't drop the last level in
    the path it just ignores the '..'.

    --
    Steven
    Steven Saunderson, Apr 8, 2006
    #11
  12. Leonard Blaisdell wrote:

    > In article <44373e80$0$4205$>,
    > John Salerno <> wrote:
    >
    >> Here's the link, if it helps: http://python.johnjsalerno.com/
    >>
    >> I have the Python logo set at the top of the page, but the alternate
    >> text gets displayed instead.

    >
    > Not in my browser. I get a 'question mark image' instead. Nothing
    > alternate at all. If alternate pops up for you, it's because the alt
    > attribute is set and Explorer thinks it's the title attribute. Try another
    > browser to see that the alternate text does not get displayed, unless
    > you're using Lynx.


    I got the alt text with Firefox.


    --
    Blinky RLU 297263
    Killing all posts from Google Groups
    The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
    Coming Soon: Filtering rules specific to various real news clients
    Blinky the Shark, Apr 8, 2006
    #12
  13. Jim Moe wrote:

    > are asking to go to a directory that is higher (more "rooty", a
    > super-root?) than the root directory of the subdomain.


    Rooty-toot-toot!

    Sorry. Lost my head, there, for a moment. :)


    --
    Blinky RLU 297263
    Killing all posts from Google Groups
    The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
    Coming Soon: Filtering rules specific to various real news clients
    Blinky the Shark, Apr 8, 2006
    #13
  14. John Salerno

    Jim Moe Guest

    Blinky the Shark wrote:
    >
    >> are asking to go to a directory that is higher (more "rooty", a
    >> super-root?) than the root directory of the subdomain.

    >
    > Rooty-toot-toot!
    >

    Rootin', tootin' & shootin'!

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)
    Jim Moe, Apr 8, 2006
    #14
    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. nn

    background won't appear

    nn, Apr 9, 2006, in forum: HTML
    Replies:
    3
    Views:
    341
  2. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    875
    Mark Rae
    Dec 21, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,804
    Smokey Grindel
    Dec 2, 2006
  4. Dave

    Custom Control won't appear in design mode?

    Dave, Jul 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    188
  5. kathy painter

    image won't appear

    kathy painter, Aug 9, 2003, in forum: Javascript
    Replies:
    2
    Views:
    83
    kathy painter
    Aug 9, 2003
Loading...

Share This Page