Hi,
I have an image and its associated map and area attributes. I want that when user right-clicks in a particular area on the image, my WebDataMenu should be displayed. Please let me know how to achieve this.
Basically I dont know how to attach the WebDataMenu to the image click event.
Thanks a lot.
Hi David,
Thanks for the quick response. Yes I want to use WebDataMenu as a context menu.
Actually my issue is that I dont have "eventArgs.get_browserEvent()" in my img click event as the code sample demonstrates, so I am currently unable to use it. So my code is like this:
"eventArgs.get_browserEvent()"
<img id="img1" src="<path>" onclick="myImageClickHandler();"/>
Now my question is how to get "eventArgs.get_browserEvent()" in my javascript method myImageClickHandler()? Please let me know what I am missing here.
Thanks.
Hi sandy_joggy,
Basically it sounds like you want to use the WebDataMenu as a context menu. You can follow the code similary to our sample for that. Basically in the click event of the map area, you will need to do menu.showAt(browserEvent, x, y).
regards,David Young