Changeset 7108
- Timestamp:
- 05/08/08 13:24:07 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/vector-behavior/lib/OpenLayers/Protocol/WFS/v1_0_0.js
r7105 r7108 212 212 var data = this.format.write(root); 213 213 214 new OpenLayers.Ajax.Request(this.url,215 {method: 'post',216 postBody: data,217 onComplete: OpenLayers.Console.log //quick fix218 });214 return OpenLayers.Request.POST({ 215 url: this.url, 216 callback: OpenLayers.Console.log, //quick fix, 217 data: data 218 }); 219 219 }, 220 220 … … 258 258 259 259 // 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)); 261 261 262 262 return node; … … 280 280 281 281 // TODO: this should work with alt formats. 282 var geom = this. layer.format.buildGeometryNode(feature.geometry);282 var geom = this.format.buildGeometryNode(feature.geometry); 283 283 284 284 // TODO: deal with this elsewhere
