[OpenLayers-Users] triggering the save-event is not working
Marco Scheuble
mail at marco-scheuble.de
Tue Oct 20 09:51:49 EDT 2009
Hi Eric,
thanks for your answer.
I don't use the trunk version of OL! Why?
Will there be savestrategy-events in upcoming versions?
cheers, Marco
Eric Lemoine-2-2 wrote:
>
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/triggering-the-save-event-is-not-working-tp3768194p3858752.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list