<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Brian Hamlin ha scritto:
<blockquote cite="mid:866C854E-37D1-11DD-B48E-000A277A733C@light42.com"
type="cite">Can you say that again, in a different way?
<br>
Its not clear what you mean
<br>
<br>
<br>
<br>
</blockquote>
thank you for replay... yes I think so me that is not clear :)<br>
<br>
On featureserver documentation I found that for delete a feature from
my data I have to use curl software, like:<br>
<br>
<code>curl -X DELETE <a class="moz-txt-link-freetext" href="http://example.com/featureserver.cgi/layer/1.json">http://example.com/featureserver.cgi/layer/1.json</a><br>
<br>
but for me is necessary delete the feature by url, but I think I found
the solution<br>
this is correct?<br>
<br>
building a del() function like this:<br>
<br>
geojson = new OpenLayers.Format.GeoJSON();<br>
<br>
function del(feature) {<br>
url = "/featureserver.cgi/layer";<br>
<br>
json = geojson.write(feature);<br>
new OpenLayers.Ajax.Request(url, <br>
{ method: 'DELETE', <br>
postBody: json,<br>
requestHeaders: ['Accept', 'application/json'],<br>
onSuccess: success,<br>
onFailure: function(xhr) {<br>
$('info').innerHTML = "Failed upload (status
code "+xhr.status+"). Check your URL."<br>
}<br>
}<br>
);<br>
</code><br>
<br>
W<br>
<br>
<pre class="moz-signature" cols="72">--
Please no .doc, .xls, .ppt, .dwg:
<a class="moz-txt-link-freetext" href="https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats">https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats</a>
Walter Lorenzetti
email+jabber: <a class="moz-txt-link-abbreviated" href="mailto:lorenzetti@faunalia.it">lorenzetti@faunalia.it</a>
<a class="moz-txt-link-abbreviated" href="http://www.faunalia.it">www.faunalia.it</a>
Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy</pre>
</body>
</html>