<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>ajax onfailure does not decrease requests counter</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi all.<BR>
<BR>
I'm using OL2.3 and I'm using loadURL as the ajax mechanism.<BR>
<BR>
I use OpenLayers.Ajax.Responders.register to show and hide a small animated icon to show when client-server communication is going on. This works fine until there's a failed request.<BR>
<BR>
As far as I can see, when an ajax request fails OL does not update OpenLayers.Ajax.activeRequestCount, so my function does not hide the animated icon.<BR>
<BR>
I feel the counter should be decreased every time a request terminates, even if it failed.<BR>
<BR>
Also, I don't know if the responder onComplete gets fired when a request fails.<BR>
<BR>
As long as I'm on the subject I would like to ask if there's a way to know when tiles have finished loading on a map or layer? I have searched the list for this and did not find a solution. But OL is evolving so fast I'm hoping maybe there is.<BR>
<BR>
Thanks,<BR>
Duarte Carreira</FONT>
</P>

</BODY>
</HTML>