[thelist] IE select value in drop down but clicks on map

Lee kowalkowski lee.kowalkowski at googlemail.com
Fri Jan 12 03:42:10 CST 2007

On 10/01/07, Stefan Schwarzer <st.schwarzer at geois.de> wrote:
> Now, when I click to select a year, IE interprets this as a click on
> the map, instead of just a selection within the box. It sends the
> request to the server and the server does what it is supposed to do.
> But the selection of the year still wasn't successful.
> Any way to avoid that IE confusion?

You have document.onmousedown and document.onmouseup definitions,
which you use determine whether or not the user is dragging a
rectangle on the map.

Coupled with the !dragging && insideMap() check, whenever the user
clicks and the mouse is over the map, a startZoomBox and stopZoomBox
is issued and the stopZoomBox submits a form.

The dragging isn't very robust either, I think it only works properly
when the user hasn't scrolled from the top left.

You could assign the mouse event to the map instead of the document,
it doesn't fix your scroll issue though.


More information about the thelist mailing list