We have a Format.WFS that works in IE now -- by doing so, it means it is

spitting out a string, not an object, so this patch removes the 
Ajax.serializeToString on the string which was breaking. r=tschaub 
(Closes #1355)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-02-15 22:42:07 +00:00
parent fa55f54e32
commit 1f2a057c5d

View File

@@ -440,17 +440,11 @@ OpenLayers.Layer.WFS = OpenLayers.Class(
var data = this.writer.write(this.features);
var url = this.url;
if (OpenLayers.ProxyHost &&
OpenLayers.String.startsWith(this.url, "http")) {
url = OpenLayers.ProxyHost + escape(this.url);
}
var success = OpenLayers.Function.bind(this.commitSuccess, this);
var failure = OpenLayers.Function.bind(this.commitFailure, this);
data = OpenLayers.Ajax.serializeXMLToString(data);
// from prototype.js
new OpenLayers.Ajax.Request(url,
{ method: 'post',