Hey Alexandre,<div><br></div><div>I&#39;m late to this thread, and on a place now w/no web access or copies of FS on this laptop to try verify what you&#39;ve been testing.  However, a few things:</div><div> - The OL code in FeatureServer is, I believe, fairly old.  I would not count on anything that is done there ( eg <span class="Apple-style-span" style="border-collapse: collapse; ">OpenLayers.Ajax.Request instead of protocol.commit()) as being the latest/best way to take advantage of OL.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"> - As you note, to delete features I think FS will take a POST request with method=DELETE.     </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; "> - Can you tell us how you are running FS?  Via mod-wsgi?  as a cgi?  </span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"> - What DataSource are you using (eg PostGIS?)</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"> - Finally, can you paste in the exact POST data you are sending (Eg from firebug, your curl command, or whatnot), and associated URL when trying to delete?</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; "> </span></div>
<div><div>  -Josh<br>
<br><br><div class="gmail_quote">2009/6/22 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
   Still trying to make OpenLayers+FeatureServer work in full<br>
transactional mode.  I looked at the &quot;manual json edit&quot; example at<br>
<a href="http://featureserver.org" target="_blank">featureserver.org</a> (2) and tried to do the same with my demo (1).<br>
<br>
  It works well for Insert/Modify now, but it doesn&#39;t with Delete.  The<br>
FS example (2) has the same problem.  I get a the error :<br>
<br>
&lt;&lt;&lt;<br>
Invalid JSON. Content was: _method=delete<br>
 &gt;&gt;&gt;<br>
<br>
The request is a POST.  I&#39;m not sure, but I think it should be a<br>
&quot;Delete&quot;.  I don&#39;t know what&#39;s wrong yet, but if anyone has a hint, that<br>
would be appreciated.<br>
<br>
(1) demo : <a href="http://dev4.mapgears.com/bdga-fs/" target="_blank">http://dev4.mapgears.com/bdga-fs/</a><br>
<div class="im">(2) <a href="http://featureserver.org/demo/json.html" target="_blank">http://featureserver.org/demo/json.html</a><br>
</div>(3) new js file : <a href="http://dev4.mapgears.com/bdga-fs/main-ajax.js" target="_blank">http://dev4.mapgears.com/bdga-fs/main-ajax.js</a><br>
<div><div></div><div class="h5"><br>
--<br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
_______________________________________________<br>
Featureserver mailing list<br>
<a href="mailto:Featureserver@openlayers.org">Featureserver@openlayers.org</a><br>
<a href="http://featureserver.org/mailman/listinfo/featureserver" target="_blank">http://featureserver.org/mailman/listinfo/featureserver</a><br>
</div></div></blockquote></div><br></div></div>