<div>Thanks Eric.</div>
<div> </div>
<div>Wich version do I have to use to make the following example code work?</div>
<div> </div>
<div>I'm getting this error when I use OpenLayers.Strategy.Save and OpenLayers.Protocol.WFS.</div>
<div> </div>
<div> </div>
<div>code:</div>
<div>wfs = new OpenLayers.Layer.Vector("Editable Features", {<br> strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],<br> projection: new OpenLayers.Projection("EPSG:4326"),<br>
protocol: new OpenLayers.Protocol.WFS({<br> version: "1.1.0",<br> srsName: "EPSG:4326",<br> url: "<a href="http://demo.opengeo.org/geoserver/wfs">http://demo.opengeo.org/geoserver/wfs</a>",<br>
featureNS : "<a href="http://opengeo.org/">http://opengeo.org</a>",<br> featureType: "restricted",<br> geometryName: "the_geom",<br>
schema: "<a href="http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=og:restricted">http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=og:restricted</a>"<br>
})<br> }); </div>
<div><br><br> </div>
<div class="gmail_quote">2009/6/1 Eric Lemoine <span dir="ltr"><<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">On Tuesday, June 2, 2009, Wesley <<a href="mailto:wesmota@gmail.com">wesmota@gmail.com</a>> wrote:<br>> Hi folks,<br>><br>> I'm trying to use the WFS in openlayers, when I add the following code:<br>
> var saveStrategy = new OpenLayers.Strategy.Save();<br>><br>> I got an error message: " OpenLayers.Strategy.Save is not a constructor".<br><br></div></div>You most probably don't use a version of OpenLayers that includes the strategy.<br>
<br>><br>> it's wrong?<br>><br>> Thanks!<br>><br>><br>><br><br>--<br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br><a href="http://www.camptocamp.com/" target="_blank">http://www.camptocamp.com</a><br></blockquote></div><br>