[OpenLayers-Users] Strategy.save() callback?

Jimmy Aumard jimmy.aumard at gmail.com
Tue Aug 25 07:09:56 EDT 2009


Thanks Kris it's work perfectly!!

Jim

2009/8/25 Kris Geusebroek <kgeusebroek at xebia.com>

>  Hi Jimmy,
>
>
>
> You could use the onCommit function of the strategy to call your function
>
>
>
>       *var* saveOptions = {
>
>             onCommit: *function*(response) {
>
>                   *if* (response.success()) {
>
>                         *var* features=response.reqFeatures;
>
> // rest of the code originally in save strategy
>
>                   callYourOwnfunction();
>
> }
>
>             }
>
>       };
>
>
>
> Cheers kris
>
>
>
>
>
> *From:* users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
> *On Behalf Of *Jimmy Aumard
> *Sent:* Tuesday, August 25, 2009 12:16 PM
> *To:* users at openlayers.org
> *Subject:* [OpenLayers-Users] Strategy.save() callback?
>
>
>
> Hi list,
>
> I want to know if Strategy.save() have a callback if the request is good or
> bad?
>
> Thanks
>
> Jim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090825/60f447e1/attachment.html


More information about the Users mailing list