[OpenLayers-Users] [OpenLayers-Dev] Help: loadURL in IE failed
André Mendonça
andremalms at hotmail.com
Tue May 19 12:56:06 EDT 2009
Hi,
turn the error script messaging "on" in IE (somewhere at tools/internet options/ advanced).
Then when the error occurs it will inform you the exact line of the code that is causing the error.
Usually, IE has javascript problems with spaces and commas.
Andre
> Date: Tue, 19 May 2009 16:48:53 +0000
> From: weitstern at yahoo.com
> To: users at openlayers.org
> Subject: [OpenLayers-Users] [OpenLayers-Dev] Help: loadURL in IE failed
>
>
>
> Hello all,
>
>
> i develope one site mit OL, it runs good in FF, but stops in IE,
> and maybe stops for:
>
> OpenLayers.loadURL(url, null, this, parseGetCapabilities);
>
> it returns 'Request failed'.
>
> So i tried to change, because the site should also run in IE, first :
> var request = OpenLayers.Request.GET({
> url: url,
> callback: parseGetCapabilities});
>
> It succeed still only in FF, the IE said that the object doesn't support the charcter.
>
>
> Dann i changed it again:
> var client =new OpenLayers.Request.XMLHttpRequest();
> client.open("GET", url);
> client.send();
>
> if(client.readyState == 4 && client.status == 200) {
>
> // so far so good
> alert('responseXML' + client.responseXML);
> if(client.responseXML != null){
> parseGetCapabilities(client.responseXML);
>
> } else if (client.readyState == 4 && client.status != 200) {
> // fetched the wrong page or network error...
> alert('XMLHttpRequest errors. ');
> }
> }
>
> This doesn't run both in FF and IE, in FF the readyState returned 4 and status was 404 and reponseXML was null, in IE the readyState = 1 and status was 404 and reponseXML was null.
>
> Could somebody kindly help me? Since i worked on this problem already several weeks, and still can't find a way.
>
> Thank you very much!
>
>
> Best regards,
> Tanpopo
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
_________________________________________________________________
Emoticons e Winks super diferentes para o Messenger. Baixe agora, é grátis!
http://specials.br.msn.com/ilovemessenger/pacotes.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090519/d5c96df1/attachment.html
More information about the Users
mailing list