[OpenLayers-Users] Strategy.save() callback?
Kris Geusebroek
kgeusebroek at xebia.com
Tue Aug 25 06:55:04 EDT 2009
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/bb4192be/attachment.html
More information about the Users
mailing list