Looks like this is a bug in OpenLayers.<br><br>It works fine in IE6 &amp; IE7.&nbsp; Only FF shows this bug.<br><br>2 example pages show this working and not working:<br><br>Here is a slight adaptation of the examples/custom-control.html
 file.&nbsp; The only difference from the original being that instead of alerting the results it displays them in a div immediately below the map div.&nbsp; It works perfectly.&nbsp; :)<br><a href="http://demo.jdi-consult.net/oltest/custom-control-box.html">
http://demo.jdi-consult.net/oltest/custom-control-box.html</a><br><br>In this example there is one further change from the example above.&nbsp; The handler has been changed from Box to Point.&nbsp; Now if you shift click the map the co-ords are displayed below the map as before, if you then shift click outside the map div the co-ords are recalculated and displayed.&nbsp; This should not happen!&nbsp; Further clicks outside the map do not trigger the handler.
<br><a href="http://demo.jdi-consult.net/oltest/custom-control-point.html">http://demo.jdi-consult.net/oltest/custom-control-point.html</a><br><br>Can someone please confirm this, is there a quick fix?&nbsp; Shall I add it to JIRA?
<br><br><br><br><div><span class="gmail_quote">
On 9/1/07, <b class="gmail_sendername">Tom (JDi Solutions)</b> &lt;<a href="mailto:tom.dean@jdi-solutions.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tom.dean@jdi-solutions.co.uk</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I still can&#39;t work this one out, any help would be appreciated.&nbsp; Here&#39;s a live example:<br><br><a href="http://demo.jdi-consult.net/oltest/clickprob.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://demo.jdi-consult.net/oltest/clickprob.html</a><br><br>
When the map first loads you can click and hold to pan around.&nbsp; Select &quot;get Co-Ords&quot; and you can no longer pan that way, instead a click on the map displays the co-ordinates below the map.&nbsp; Now try to click on &quot;navigate&quot; in FF it will show the co-ordinates of the point you clicked, then on the second click it is possible to select &quot;navigate&quot;.
<br><br>It works fine in IE6.<br><br>Can anyone help?<br><br>cheers,<br><span><br>Tom</span><div><span><br><br><br><div><span class="gmail_quote">On 8/31/07, <b class="gmail_sendername">
Tom (JDi Solutions)</b> &lt;<a href="mailto:tom.dean@jdi-solutions.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
tom.dean@jdi-solutions.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br><br>I&#39;ve been creating a handler based on the code here:&nbsp; 
<a href="http://trac.openlayers.org/wiki/Handlers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://trac.openlayers.org/wiki/Handlers</a>&nbsp; <br><br>What&#39;s supposed to happen is that the user clicks on the map and the co-ordinates are sent off to a web service which returns a polygon in WKT which is then plotted.&nbsp; That all works fine except that after the user has clicked the map once the next click anywhere in the map window will result in a further call to the web service and no response from any other control they may have clicked on, 
e.g. a link or button.&nbsp; If the click was outside the map div the user is then able to click on any other controls on the page.&nbsp; If the click was in the map window the behaviour continues.<br><br>In the code below I can comment out everything in the sendpoint function so that it does nothing but the behaviour still persists, 
i.e. the next click will not activate anything else within the browser window.<br><br>What&#39;s even more strange is that this actually works perfectly well in IE6 and this behaviour is observed in Firefox only which tells me I&#39;m doing something very wrong.&nbsp; Firebug is not reporting any errors.&nbsp; I&#39;ve not tried IE7 or other browser as yet.
<br><br>Any ideas anyone?<br><br>Here&#39;s some code:<br><br><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; drawControls = {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; toidselect: new OpenLayers.Control()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };</span><br style="font-family: courier new,monospace;">



<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OpenLayers.Util.extend(drawControls[&#39;toidselect&#39;], {</span><br style="font-family: courier new,monospace;">



<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; draw: function () {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.point = new OpenLayers.Handler.Point( drawControls[&#39;toidselect&#39;],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {&quot;done&quot;: 
this.sendpoint})</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.point.activate();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; },</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sendpoint: function (point) {
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var xpoint = point.lon;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var ypoint = point.lat;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!xpoint) {</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xpoint = point.x;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ypoint = 
point.y;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">



&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xmlhttp.open(&#39;get&#39;, &#39;polyselect.php?coords=&#39; + xpoint + &#39;,&#39; + ypoint, true);
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xmlhttp.onreadystatechange = drawTOIDPolygon;</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xmlhttp.send(null);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; });</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(var key in drawControls) {
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addControl(drawControls[key]);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br><br>Thanks in advance,<br><br>Tom Dean<br>
</blockquote></div><br>
</span></div></blockquote></div><br>