Thanks for the help! Ii got it working...for some reason beyond me the code below did not do the job, but, this slightly different code works:<br><br>&nbsp;&nbsp;&nbsp; if (window.event) //ms model-IE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; event.cancelBubble=true<br>
&nbsp;&nbsp;&nbsp; else if (e.stopPropagation) //w3c model-FF<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e.stopPropagation()<br><br>???<br><br><div class="gmail_quote">On Feb 18, 2008 3:00 PM, Paul Spencer &lt;<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In the code that handles the mouse click on the menu, you need to stop<br>the event from propagating [1]. &nbsp;If you are using a javascript<br>
framework such as prototype [2], it will probably have such a<br>mechanism (in prototype, for instance, you call Event.stop(evt)). &nbsp;If<br>you are not using a framework, you will need to add the code for<br>stopping the event, this is what prototype uses:<br>
<br>if (evt.preventDefault) {<br> &nbsp; evt.preventDefault();<br> &nbsp; evt.stopPropagation();<br>} else {<br> &nbsp; evt.returnValue = false;<br> &nbsp; evt.cancelBubble = true;<br>}<br><br>The quirksmode site has some good information general information<br>
about javascript events [3].<br><br>Cheers<br><br>Paul<br><br>[1] <a href="http://www.quirksmode.org/js/events_order.html" target="_blank">http://www.quirksmode.org/js/events_order.html</a><br>[2] <a href="http://www.prototypejs.org/" target="_blank">http://www.prototypejs.org/</a><br>
[3] <a href="http://www.quirksmode.org/js/introevents.html" target="_blank">http://www.quirksmode.org/js/introevents.html</a><br><div><div></div><div class="Wj3C7c"><br><br>On 18-Feb-08, at 2:31 PM, Ben Thompson wrote:<br>
<br>&gt; we have some dropdown menus above the map area. each item consisting<br>&gt; of an &lt;a href=xxx&gt;<br>&gt; problem is, the menus overlay the map when unrolled and for some<br>&gt; reason the map gets the mouseclick too, causing it to repeat<br>
&gt; applying whatever tool was last used (zoom in, etc). How to tell the<br>&gt; map not to do this (i.e., disable active tool), or, better, how to<br>&gt; make it not get clicked in the first place?<br>&gt;<br>&gt; thanx,<br>
&gt; Ben Thompson<br></div></div>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br><br>__________________________________________<br><font color="#888888"><br> &nbsp; &nbsp;Paul Spencer<br> &nbsp; &nbsp;Chief Technology Officer<br> &nbsp; &nbsp;DM Solutions Group Inc<br> &nbsp; &nbsp;<a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br></font></blockquote></div><br>