473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

image very occasionally doesn't download

Hi,

I am using a single pixel (i.e. 1x1) gif file to draw a black vertical line
in a table like this:

<td align="center" height="25"><img height="25" width="2"
src="images/blackdot.gif"></td>

very occasionally it seems that this doesn't work properly and I just get
nothing (or possibly a white line - it's difficult to tell) where the black
line should be. I'm presuming it's a browser problem specific to IE, but
since it happens so rarely and 99% of my customers use IE, it might just be
coincidence that I've never seen it on another browser.

Once it gets into this state, the user can click on various windows within
my site, and everywhere this vertical line is used it doesn't appear, so it
looks to me like the image is stored incorrectly in the memory cache. If the
user fires up another browser window, the black line appears OK in that one.

It happens so rarely it's difficult to attribute the problem to any specific
PC or windows version.

Both the HTML and the image itself are being served from tomcat, but I can't
see how that makes any difference

Any ideas?

Andy


Jul 20 '05 #1
9 1586
Andy Fish:
I am using a single pixel (i.e. 1x1) gif file to draw a black vertical line
in a table like this: <td align="center" height="25"><img height="25" width="2"
src="images/blackdot.gif"></td>
What is this? 1994?
Any ideas?


Use CSS.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #2
On Fri, 02 Apr 2004 13:48:07 GMT, Andy Fish <aj****@blueyonder.co.uk>
wrote:
Hi,

I am using a single pixel (i.e. 1x1) gif file to draw a black vertical
line
in a table like this:

<td align="center" height="25"><img height="25" width="2"
src="images/blackdot.gif"></td>

very occasionally it seems that this doesn't work properly and I just get
nothing (or possibly a white line - it's difficult to tell) where the
black
line should be.


In the US we have a radio program called Car Talk. In the midst of public
radio programming, there's a goofy little show where these two auto
mechanics field phone calls from people with car trouble and they diagnose
the problem from the studio. People use all sorts of means to describe the
problem, including having to make the noise themselves. These guys (at
least one was an MIT professor at one time) are extremely god at this.

However, this is not Car Talk. Could you please bring it into the shop so
we might have a look at it? (i.e. post the URL?)
Jul 20 '05 #3
On Fri, 2 Apr 2004, Bertilo Wennergren wrote:
<td align="center" height="25"><img height="25" width="2"
src="images/blackdot.gif"></td>


What is this? 1994?


It is from <http://images.google.com/images?q=blackdot.gif>

SCNR

Jul 20 '05 #4
ROFL

I like your analagy

unfortunately it's an intranet-based system so I can't give a link. I
guarantee that there is nothing funny about what it's doing, it's just that
table cell with an image in it.

I can also pretty much guarantee that if you played with it all day you
wouldn't see the problem. I've been working with the system for 18 months
and I've only ever witnessed the problem first hand once; I re-opened the
browser and it went away never to return.

Andy

"Neal" <ne*****@spamrcn.com> wrote in message
news:op**************@news.rcn.com...
On Fri, 02 Apr 2004 13:48:07 GMT, Andy Fish <aj****@blueyonder.co.uk>
wrote:
Hi,

I am using a single pixel (i.e. 1x1) gif file to draw a black vertical
line
in a table like this:

<td align="center" height="25"><img height="25" width="2"
src="images/blackdot.gif"></td>

very occasionally it seems that this doesn't work properly and I just get nothing (or possibly a white line - it's difficult to tell) where the
black
line should be.


In the US we have a radio program called Car Talk. In the midst of public
radio programming, there's a goofy little show where these two auto
mechanics field phone calls from people with car trouble and they diagnose
the problem from the studio. People use all sorts of means to describe the
problem, including having to make the noise themselves. These guys (at
least one was an MIT professor at one time) are extremely god at this.

However, this is not Car Talk. Could you please bring it into the shop so
we might have a look at it? (i.e. post the URL?)

Jul 20 '05 #5
no, it's not one of the ones on google I'm afraid. it is literally 1 pixel
square and it's pitch black. I don't think the actual gif is at fault.

seriously though, if you can tell me how to draw a vertical line 25 pixels
high and 2 pixels wide with CSS, I will give that a go

Andy

"Andreas Prilop" <nh******@rrzn-user.uni-hannover.de> wrote in message
news:Pine.GSO.4.44.0404021556080.10730-100000@s5b003...
On Fri, 2 Apr 2004, Bertilo Wennergren wrote:
<td align="center" height="25"><img height="25" width="2"
src="images/blackdot.gif"></td>


What is this? 1994?


It is from <http://images.google.com/images?q=blackdot.gif>

SCNR

Jul 20 '05 #6
"Andy Fish" <aj****@blueyonder.co.uk> wrote:
no, it's not one of the ones on google I'm afraid. it is literally 1 pixel
square and it's pitch black. I don't think the actual gif is at fault.

seriously though, if you can tell me how to draw a vertical line 25 pixels
high and 2 pixels wide with CSS, I will give that a go


<div style="height: 25px; width: 2px; background: #000;"></div>

Though often lines are borders, so use of the border property is
called for.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #7

"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:4M****************@news-lhr.blueyonder.co.uk...
no, it's not one of the ones on google I'm afraid. it is literally 1 pixel
square and it's pitch black. I don't think the actual gif is at fault.

seriously though, if you can tell me how to draw a vertical line 25 pixels
high and 2 pixels wide with CSS, I will give that a go

Andy

put this in the head of your document or external style sheet (if external,
remove the style tags, naturally):

<style type="text/css">
<!--
.vline {
width: 0px;
height: 25px;
border: 1px solid #000;
}
-->
</style>

Then use this in your body whenever you need the line. You may need to
adjust or add style attributes depending on your exact needs.

<div class="vline"></div>

I tested this in IE6 and mozilla firefox. Can't be sure about other
browsers...
No gif needed...
Hope this helps.

Jim Roberts
Jul 20 '05 #8
On Fri, 02 Apr 2004 16:44:48 GMT, "Andy Fish"
<aj****@blueyonder.co.uk> wrote:
seriously though, if you can tell me how to draw a vertical line 25 pixels
high and 2 pixels wide with CSS, I will give that a go


This is just an aside ... if you will always need a 2w x 25h black
line, you could create it as a single image. That would be easier
to insert into the HTML.

Ian
--
http://www.aspipes.org/
http://www.bookstacks.org/
http://www.learnsomethingnew.us/
Jul 20 '05 #9
Thanks Steve (and other respondents)

On past experience it will take about 6 months before I can say for certain
that the problem has gone, but I'm pretty sure cutting out the image will do
the trick

Andy

"Steve Pugh" <st***@pugh.net> wrote in message
news:di********************************@4ax.com...
"Andy Fish" <aj****@blueyonder.co.uk> wrote:
no, it's not one of the ones on google I'm afraid. it is literally 1 pixelsquare and it's pitch black. I don't think the actual gif is at fault.

seriously though, if you can tell me how to draw a vertical line 25 pixelshigh and 2 pixels wide with CSS, I will give that a go


<div style="height: 25px; width: 2px; background: #000;"></div>

Though often lines are borders, so use of the border property is
called for.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>

Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Mattias Campe | last post by:
Hi, Depending on if I get an image or a text of a certain URL, I want to do something different. I don't know in advance whether I'll get an image or a text. This is a URL that returns an...
23
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was...
13
by: lkrubner | last post by:
Suppose I need to get an image as a stream of bytes. I want to store this in a variable and then embed it in some Postscript code. In my Postscript code, the image might look like this: {<...
9
by: Sam | last post by:
hi, how to retrieve(display) and save image in sql server? thanks,
4
by: BradC | last post by:
We have a Windows 2000 web server (all patches up to date) that runs a variety of sites, most of which are straight HTML or ASP. We have recently added a couple of new ASP.NET sites that use...
3
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to crop a peice of an ASP.Net Image, allowing the user to zoom in on only a section of the picture?? any help would be appreciated!! thanks --...
2
by: Roberto Carcione | last post by:
Hi at all, in have a webform (.aspx) where i display such an image i modify each time he user press a button. The image (the control is System.Web.UI.WebControls.Image) is different each time the...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
14
by: Schraalhans Keukenmeester | last post by:
I am building a default sheet for my linux-related pages. Since many linux users still rely on/prefer viewing textmode and unstyled content I try to stick to the correct html tags to pertain good...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.