Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > why won't my image appear?

Reply
Thread Tools

why won't my image appear?

 
 
John Salerno
Guest
Posts: n/a
 
      04-08-2006
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.
 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      04-08-2006
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
 
Reply With Quote
 
 
 
 
Blinky the Shark
Guest
Posts: n/a
 
      04-08-2006
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

 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      04-08-2006
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.
 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      04-08-2006
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.
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      04-08-2006
To further the education of mankind, John Salerno
<(E-Mail Removed)> declaimed:

> Does it matter that it's a subdomain?


Absolutely. Beauregard's url should work.

--
Neredbojias
Infinity can have limits.
 
Reply With Quote
 
Leonard Blaisdell
Guest
Posts: n/a
 
      04-08-2006
In article <44373e80$0$4205$(E-Mail Removed)>,
John Salerno <(E-Mail Removed)> 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/>
 
Reply With Quote
 
Leonard Blaisdell
Guest
Posts: n/a
 
      04-08-2006
In article <PdHZf.71131$(E-Mail Removed)>,
"Beauregard T. Shagnasty" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
Jim Moe
Guest
Posts: n/a
 
      04-08-2006
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)
 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      04-08-2006
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I EXPLORE an image using Acronis True Image ver. 8? tim@moon.net Computer Support 10 02-11-2007 04:50 PM
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Cisco 2611 and Cisco 1721 : Why , why , why ????? sam@nospam.org Cisco 10 05-01-2005 08:49 AM
wx.Image: Couldn't add an image to the image list. Laszlo Zsolt Nagy Python 1 01-26-2005 09:55 PM



Advertisments