Thanks!  I already knew about featureselected -- but I must have overlooked that extra &#39;s&#39;!!!!<div><br></div><div>Cody<br><br><div class="gmail_quote">On Tue, Jun 14, 2011 at 9:46 PM, Eric Lemoine <span dir="ltr">&lt;<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, Jun 14, 2011 at 11:56 PM, codydjango &lt;<a href="mailto:codydjango@gmail.com">codydjango@gmail.com</a>&gt; wrote:<br>


&gt;<br>
&gt; In this case your callback isn&#39;t called because of the Fixed strategy.<br>
&gt;&gt; The strategy calls protocol.read and provides its own callback to the<br>
&gt;&gt; read method, so this overrides the &quot;global&quot; callback. If your app code<br>
&gt;&gt; does protocol.read() somewhere then your &quot;global&quot; callback func will<br>
&gt;&gt; get invoked.<br>
&gt;<br>
&gt; Hello -- I&#39;m new to openlayers, and I&#39;ve been running into some issues,<br>
&gt; probably because I&#39;m new.  One of the first things I wanted to do was draw a<br>
&gt; box, have the server return all the features in the box, and then &quot;do<br>
&gt; something&quot; with them.<br>
&gt;<br>
&gt; I thought I&#39;d use something like this:<br>
&gt;<br>
&gt;        var getFeatures = new OpenLayers.Control.GetFeature({<br>
&gt;            box: true,<br>
&gt;            click: false,<br>
&gt;            multiple: true,<br>
&gt;            protocol: new OpenLayers.Protocol.HTTP({<br>
&gt;                url: &#39;/obj&#39;,<br>
&gt;                format: new OpenLayers.Format.GeoJSON(),<br>
&gt;                params: {<br>
&gt;                    limit: 2000<br>
&gt;                }<br>
&gt;            })<br>
&gt;        });<br>
&gt;<br>
&gt; What is the best way to set a custom callback to go off once their is<br>
&gt; response data to work with?<br>
<br>
</div>The control triggers &quot;featuresselected&quot; events when features are received.<br>
<div class="im"><br>
        var getFeatures = new OpenLayers.Control.GetFeature({<br>
            box: true,<br>
            click: false,<br>
            multiple: true,<br>
            protocol: new OpenLayers.Protocol.HTTP({<br>
                url: &#39;/obj&#39;,<br>
                format: new OpenLayers.Format.GeoJSON(),<br>
                params: {<br>
                    limit: 2000<br>
                }<br>
</div>            }),<br>
            eventListeners: {<br>
                featuresselected: function(e) {<br>
                    // do something with e.features<br>
                }<br>
            }<br>
        });<br>
<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</blockquote></div><br></div>