[OpenLayers-Users] triggering the save-event is not working

Eric Lemoine eric.lemoine at camptocamp.com
Tue Oct 6 15:43:30 EDT 2009


On Mon, Oct 5, 2009 at 1:24 PM, Marco Scheuble <mail at marco-scheuble.de> wrote:
>
> Hi List,
>
> After reading
> http://n2.nabble.com/Trigger-save-event-td3301517.html#a3301517 this thread
> about troubleshooting this problem , I have still problems registering the
> success-event when saving changes of a vectorlayer.
>
> following message is given by the firebug:
> "saveStrategy.events is undefined"

do you use OpenLayers trunk? The save strategy does not have events in
the 2.8 version.

>
> this is my code:
>
>        saveStrategy = new OpenLayers.Strategy.Save();
>
>        saveStrategy.events.register("success", saveStrategy, ausgabe);
> or     saveStrategy.events.on("success": ausgabe);
>
> the
> http://dev.openlayers.org/docs/files/OpenLayers/Strategy/Save-js.html#OpenLayers.Strategy.Save.EVENT_TYPES
> API  says that the event can be registered like this:
>        protocol.events.register(type, obj, listener);

there was an error in the doc, I just corrected it in trunk.


Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list