<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hmm.... ok, in that case I'm wrong :)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The problem is not likely to be in the chameleon
code, because each image has a valid url, that leads to a valid image
(eventually). Do you keep a log of every request sent to the web-server,
including failed requests? Wonder what it says when an image breaks. Could it be
that when many requests are sent at once, that the php memory limit is exceeded?
(memory_limit in php.ini file)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I can not imagine that the requests are sent too
quickly for a web-server to handle, because most web-servers have higher loads
than that. Which would leave the option of a bug in IE....... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My current version of IE (6.0.2800.1106.xpsp2) on
winxp refuses to show broken images, no matter what. But my colleagues
computer (win2k) does have it (6.0.2800.1106CO). I have seen it in
win98, IE5.0 as well.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: Bart van den
Eijnden [mailto:BEN@Syncera-ITSolutions.NL] <BR>Sent: 13 July 2005 14:23<BR>To:
<A href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>;
<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A><BR>Subject:
RE: [Chameleon] IE red cross problem</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hi Jacob,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>my site is running on Windows 2003 with IIS6 and it
still occurs quite (frequently) there .....</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Best regards,<BR>Bart</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Bart van den Eijnden<BR>Syncera IT
Solutions<BR>Postbus 270<BR>2600 AG DELFT</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>tel.nr.: 015-7512436<BR>email: <A
href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>>>> "Jacob Delfos" <<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>>
07/13/05 02:29am >>><BR>Well, I have to say it's a less frequent
problem, but maybe I just haven't noticed as much because I use firefox most of
the time. I noticed it only occurs with the combination of internet explorer
(not all versions of it though) and Apache. My current version of IE doesn't
suffer from it at all. I *think* it also improved since we switched from win2k
to windows 2003 server. The essense of the problem is probably requests being
fired too quickly, which would explain why win2k3 would deal with it
better.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In version 1, the workaround I used made use of the
'onError' attribute of the map image (MapLayerDivImg), which in version 2 sits
in MapDHTML.js. This function invoked a function when the image broke, which
loaded an empty pixel into the map-image immediately (so users doesn't see red
cross), and then (after 0.2 seconds) reloaded the correct URL back into the map
image. The users does not notice if anything goes wrong. Legend images and
scalebar can still break, though.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I haven't yet had a reason to implement this in
version 2. Should be easy to do, so let me know if you want me to post the code,
but you could probably figure it out yourself quite easily. You are right, in
that it can cause an infinite loop. But only if the configuration of the site is
wrong (e.g. error in mapfile). It would not loop if the site normally functions.
And I think version 2 has better error-catching (e.g. error message in map
image), which would prevent that from happening. It's not a clean solution, but
a whole lot more comfortable than the user seeing broken images.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Paul Spencer<BR>Sent:
12 July 2005 20:17<BR>To: Bart van den Eijnden<BR>Cc: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>
<BR>Subject: Re: [Chameleon] IE red cross problem</DIV>
<DIV> </DIV>
<DIV>Bart,</DIV>
<DIV> </DIV>
<DIV>sorry but I have never seen this problem :( which makes it difficult to
<BR>troubleshoot. But I think Jacob did have the same problem. I
wonder if <BR>he found a solution.</DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV>Bart van den Eijnden wrote:<BR>> Hi list,<BR>> <BR>> in my
previous job when working with Chameleon I encountered the same problem, and now
I am building a new product based on Chameleon a similar problem has
arisen.<BR>> <BR>> When loading the map in IE, sometimes a red cross
appears. I have not been able to reproduce this in Firefox at all. It must have
something to do with the image loading. Although I have never seen it happen to
scalebar or reference map which are also generated by drawmap.php.<BR>>
<BR>> There were some threads about this in the past, one of them had as a
work-around to add an OnError event to the map image, but this has a
disadvantage that it can get into an endless loop.<BR>> <BR>> Are there
any new ideas or solutions on this? Are other people still experiencing this
behaviour?<BR>> <BR>> Best regards,<BR>> Bart<BR>> <BR>> Bart van
den Eijnden<BR>> Syncera IT Solutions<BR>> Postbus 270<BR>> 2600
AG DELFT<BR>> <BR>> tel.nr.: 015-7512436<BR>> email: <A
href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</A> <BR>>
<BR>> <BR>> _______________________________________________<BR>>
Chameleon mailing list<BR>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A>
<BR>> <A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A>
<BR>> </DIV>
<DIV> </DIV>
<DIV>--
<BR>+-----------------------------------------------------------------+<BR>|Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>
|<BR>+-----------------------------------------------------------------+<BR>|Applications
& Software
Development
|<BR>|DM Solutions Group
Inc
<A href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>|
<BR>+-----------------------------------------------------------------+<BR>_______________________________________________<BR>Chameleon
mailing list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A>
<BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A>
<BR></FONT></DIV></BODY></HTML>