Thanks Kris it&#39;s work perfectly!!<br><br>Jim<br><br><div class="gmail_quote">2009/8/25 Kris Geusebroek <span dir="ltr">&lt;<a href="mailto:kgeusebroek@xebia.com">kgeusebroek@xebia.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="NL">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Hi Jimmy,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">You could use the onCommit function of the strategy to call your
function</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">      </span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">var</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> <span style="background: silver none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">saveOptions</span> = {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">            onCommit:
</span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">function</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">(response) {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                  </span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">if</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
(response.success()) {</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                        </span><b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">var</span></b><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
features=response.reqFeatures;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">// rest of the
code originally in save strategy</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">                  callYourOwnfunction();</span></p>

<p style="margin-left: 70.8pt; text-indent: 35.4pt;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">}</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">            }</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">      };</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> </span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Cheers kris</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US"></span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a>
[mailto:<a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a>] <b>On Behalf Of </b>Jimmy Aumard<br>
<b>Sent:</b> Tuesday, August 25, 2009 12:16 PM<br>
<b>To:</b> <a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a><br>
<b>Subject:</b> [OpenLayers-Users] Strategy.save() callback?</span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p>Hi list,<br>
<br>
I want to know if Strategy.save() have a callback if the request is good or
bad?<br>
<br>
Thanks<br>
<br>
Jim </p>

</div></div></div>

</div>


</blockquote></div><br>