OpenLayers OpenLayers

Changeset 7108

Show
Ignore:
Timestamp:
05/08/08 13:24:07 (3 months ago)
Author:
sbenthall
Message:

Switch from OL.Ajax.Request to OL.Request for wfs protocol.commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-behavior/lib/OpenLayers/Protocol/WFS/v1_0_0.js

    r7105 r7108  
    212212        var data = this.format.write(root); 
    213213         
    214         new OpenLayers.Ajax.Request(this.url, 
    215                                   {method: 'post',  
    216                                    postBody: data
    217                                    onComplete: OpenLayers.Console.log //quick fix 
    218                                    }); 
     214        return OpenLayers.Request.POST({ 
     215            url: this.url, 
     216            callback: OpenLayers.Console.log, //quick fix
     217            data: data 
     218        });       
    219219    }, 
    220220     
     
    258258 
    259259        // TODO: this should deal with alt formats 
    260         node.appendChild(this.layer.format.createFeatureXML(feature).firstChild); 
     260        node.appendChild(this.layer.format.createFeatureXML(feature,true)); 
    261261 
    262262        return node; 
     
    280280         
    281281        // TODO: this should work with alt formats. 
    282         var geom = this.layer.format.buildGeometryNode(feature.geometry); 
     282        var geom = this.format.buildGeometryNode(feature.geometry); 
    283283         
    284284        // TODO: deal with this elsewhere