Using both onmouseup and oncontextmenu events

T

Terri I.

I have an application that displays a map for user manipulation.
For example, they can click on the map to zoom in or to retrieve a more
detailed map of a selected area.
But with IE, I also want them to be able to copy the map to the clipboard
via the context menu. But the way it is working now, when the user rightclicks
on the map image, the context menu displays but my application is also
capturing the click as if they want to do something to the map. How can the
2 co-exist??

Here is line of code that writes out the map image and captures the events:
document.write('<img name="Map" src="#OUT_ImageURL#"
width="#Session.LayerInfo.ImageWidth#" height="#Session.LayerInfo.ImageHeight#"
border=1 oncontextmenu="HandleRightClick();"
onMouseUp="if (IERightClick != 1) {alert(\'right button not clicked\');
setMapCoords();MapForm.submit();} else { InitVal(); alert(\'resetting
ierightclick\');}">')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top