[OpenLayers-Users] [OpenLayers-Dev] Help: loadURL in IE failed

tanpopo weitstern at yahoo.com
Tue May 19 12:48:53 EDT 2009



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
 



      



More information about the Users mailing list