Hi,<br><br>i think you hit <a href="http://trac.openlayers.org/ticket/1896">http://trac.openlayers.org/ticket/1896</a><br><br>Its fixed in trunk,<br>cheers<br><br>Ivan<br><br><div class="gmail_quote">On Mon, Mar 16, 2009 at 11:20 AM, <a href="mailto:aducos@hbs-research.com">aducos@hbs-research.com</a> <span dir="ltr"><<a href="mailto:aducos@hbs-research.com">aducos@hbs-research.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">When I run openlayers in ie7 I have an error in<br>
/OpenlLayers/lib/OpenLayers/Proptocol/HTTP.js on line 324:<br>
<br>
'status' is Null or is not an object<br>
<br>
This does not happen in firefox.<br>
<br>
Now if I look closer to the code, it is a bug in a method<br>
'handleResponse' of the object OpenLayers.Protocol.HTTP<br>
the method begins like this:<br>
<br>
handleResponse: function(resp, options) {<br>
var request = resp.priv;<br>
if(options.callback) {<br>
if(request.status >= 200 && request.status < 300) { ...<br>
<br>
Now in my case I don't exactly know why resp.priv is null. So I just<br>
changed the code like this and all seams to work fine (in ie and firefox):<br>
<br>
handleResponse: function(resp, options) {<br>
var request = resp.priv;<br>
if(options.callback) {<br>
if(request && request.status >= 200 && request.status < 300)<br>
{ ...<br>
<br>
This would just check if request is not null before trying to see if<br>
there is a status with it. Anyway if "request" is null the status can<br>
not be >= 200 and < 300. So the corrected code is not wrong.<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</blockquote></div><br>