<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
turn the error script messaging "on" in IE (somewhere at tools/internet options/ advanced). <BR>
Then when the error occurs it will inform you the exact line of the code that is causing the error.<BR>
Usually, IE has javascript problems with spaces and commas.<BR>
<BR>
Andre<BR> <BR>> Date: Tue, 19 May 2009 16:48:53 +0000<BR>> From: weitstern@yahoo.com<BR>> To: users@openlayers.org<BR>> Subject: [OpenLayers-Users] [OpenLayers-Dev] Help: loadURL in IE failed<BR>> <BR>> <BR>> <BR>> Hello all,<BR>> <BR>> <BR>> i develope one site mit OL, it runs good in FF, but stops in IE, <BR>> and maybe stops for: <BR>> <BR>> OpenLayers.loadURL(url, null, this, parseGetCapabilities);<BR>> <BR>> it returns 'Request failed'. <BR>> <BR>> So i tried to change, because the site should also run in IE, first : <BR>> var request = OpenLayers.Request.GET({<BR>> url: url,<BR>> callback: parseGetCapabilities});<BR>> <BR>> It succeed still only in FF, the IE said that the object doesn't support the charcter. <BR>> <BR>> <BR>> Dann i changed it again: <BR>> var client =new OpenLayers.Request.XMLHttpRequest();<BR>> client.open("GET", url);<BR>> client.send();<BR>> <BR>> if(client.readyState == 4 && client.status == 200) {<BR>> <BR>> // so far so good<BR>> alert('responseXML' + client.responseXML);<BR>> if(client.responseXML != null){<BR>> parseGetCapabilities(client.responseXML);<BR>> <BR>> } else if (client.readyState == 4 && client.status != 200) {<BR>> // fetched the wrong page or network error...<BR>> alert('XMLHttpRequest errors. ');<BR>> }<BR>> }<BR>> <BR>> 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. <BR>> <BR>> Could somebody kindly help me? Since i worked on this problem already several weeks, and still can't find a way.<BR>> <BR>> Thank you very much!<BR>> <BR>> <BR>> Best regards,<BR>> Tanpopo<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> _______________________________________________<BR>> Users mailing list<BR>> Users@openlayers.org<BR>> http://openlayers.org/mailman/listinfo/users<BR><br /><hr />Quer uma internet mais segura? <a href='http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_campaign=IE8' target='_new'>Baixe agora o novo Internet Explorer 8. É grátis!</a></body>
</html>