OpenLayers OpenLayers

Changeset 6054

Show
Ignore:
Timestamp:
02/07/08 19:56:52 (1 year ago)
Author:
crschmidt
Message:

Add further improvements to WFS writing code from sbenthall, to write out
things in IE. (Closes #1278) (again)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Format/WFS.js

    r6036 r6054  
    7777            } 
    7878        } 
    79         return transaction; 
     79         
     80        return OpenLayers.Format.XML.prototype.write.apply(this,[transaction]); 
    8081    }, 
    8182    
     
    9394        featureContainer.appendChild(geomContainer); 
    9495        for(var attr in feature.attributes) { 
    95             var attrText = document.createTextNode(feature.attributes[attr]);  
     96            var attrText = this.createTextNode(feature.attributes[attr]);  
    9697            var nodename = attr; 
    9798            if (attr.search(":") != -1) { 
     
    133134        var nameNode = this.createElementNS(this.wfsns, 'wfs:Name'); 
    134135         
    135         var txtNode = document.createTextNode(this.geometryName); 
     136        var txtNode = this.createTextNode(this.geometryName); 
    136137        nameNode.appendChild(txtNode); 
    137138        propertyNode.appendChild(nameNode);