Click here to Skip to main content
15,068,879 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on bing map. And the scenario is that user drag pushpin and drop it to
On IE you can drag pushpin anywhere in page means pushpin is not showing outside map but mouse coordinates are changing so you can find out that on which element mouse is on. I am doing this

var target = (window.event) ? window.event.srcElement :;
if ($(target).closest("table").attr("id") == "dtgDrivers")
{ }
else { }

But in case of chrome or firefox you can't drag it to outside map or mouse coordinate are not changed, so closest is also not working.
How can I make it drag outside map or by anyway find that mouse is on gridview?

1 solution

I solved it myself. If any body wants help then ask me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900