OpenLayers OpenLayers

Changeset 3854

Show
Ignore:
Timestamp:
08/04/07 15:53:30 (1 year ago)
Author:
tschaub
Message:

compensate for bad IE behavior when doing asynchronous loading from file://

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/tschaub/xml/examples/xml.html

    r3846 r3854  
    4646        function loadSuccess(request) { 
    4747            updateStatus("loaded"); 
    48             doc = request.responseXML; 
     48            if(!request.responseXML.documentElement) { 
     49                doc = format.read(request.responseText); 
     50            } else { 
     51                doc = request.responseXML; 
     52            } 
    4953        } 
    5054         
  • sandbox/tschaub/xml/lib/OpenLayers/Format/XML.js

    r3849 r3854  
    5757            function() { 
    5858                var xmldom; 
    59                 // since we want to be able to call this method on the class 
     59                // since we want to be able to call this method on the prototype 
    6060                // itself, this.xmldom may not exist even if in IE 
    6161                if(window.ActiveXObject && !this.xmldom) {