Re: [OpenLayers-Users] Help with Strategy.save and protocol.http

2010-05-20 Thread Frank Broniewski
Hello Eric, all, The save strategy just calls protocol.commit(). See http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Strategy/Save.js#L178. The protocol's commit method looks at the states of the features and calls the appropriate method (update/create/delete). See

Re: [OpenLayers-Users] Help with Strategy.save and protocol.http

2010-05-20 Thread ngreen
I can appreciate that. I just thought it worth pointing out you can get by without it in case no-one can provide a better answer. I'm curious to see an answer to your question too. The save function I wrote is quite short and simple - it's just feature.attributes. = etc. and a couple of

Re: [OpenLayers-Users] Help with Strategy.save and protocol.http

2010-05-20 Thread Eric Lemoine
On Thu, May 20, 2010 at 9:02 AM, Frank Broniewski b...@metrico.lu wrote: Hello Eric, all, The save strategy just calls protocol.commit(). See http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Strategy/Save.js#L178. The protocol's commit method looks at the states of the

[OpenLayers-Users] Help with Strategy.save and protocol.http

2010-05-19 Thread Frank Broniewski
Hello all, I am currently (virtually ;-))fighting to understand how I can make an editable layer in OpenLayers. Especially the connection between the save-strategy and the protocol is difficult to understand. I already searched the docs and the mailing list, but was unable to find some kind

Re: [OpenLayers-Users] Help with Strategy.save and protocol.http

2010-05-19 Thread ngreen
I'm far from an expert, but I know that it's possible to edit features on the map and save those changes externally (eg to a database) without these strategies or protocols. I write them directly to feature attributes and send the data to a db with AJAX. -- View this message in context: