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> if (window.event) //ms model-IE<br> event.cancelBubble=true<br>
else if (e.stopPropagation) //w3c model-FF<br> e.stopPropagation()<br><br>???<br><br><div class="gmail_quote">On Feb 18, 2008 3:00 PM, Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> 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]. 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)). 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> evt.preventDefault();<br> evt.stopPropagation();<br>} else {<br> evt.returnValue = false;<br> 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>> we have some dropdown menus above the map area. each item consisting<br>> of an <a href=xxx><br>> problem is, the menus overlay the map when unrolled and for some<br>> reason the map gets the mouseclick too, causing it to repeat<br>
> applying whatever tool was last used (zoom in, etc). How to tell the<br>> map not to do this (i.e., disable active tool), or, better, how to<br>> make it not get clicked in the first place?<br>><br>> thanx,<br>
> Ben Thompson<br></div></div>> _______________________________________________<br>> mapserver-users mailing list<br>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> <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> Paul Spencer<br> Chief Technology Officer<br> DM Solutions Group Inc<br> <a href="http://www.dmsolutions.ca/" target="_blank">http://www.dmsolutions.ca/</a><br>
<br></font></blockquote></div><br>