Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
142
rated 0 times [  146] [ 4]  / answers: 1 / hits: 25220  / 13 Years ago, fri, may 27, 2011, 12:00:00

What i am trying to achieve is make a DIV and display world map image on it or as a background.. & when user clicks some somewhere on the map, i catch the mouse-click location,



then i am some how going to translate the mouse's X,Y cords into longitude,latitude and then run an AJAX to display some data.



My problem is:




  • How to get mouse click location with JavaScript

  • How to translate the global click location into a DIV's relative X,Y coords of a layer


More From » html

 Answers
119
[#92017] Thursday, May 26, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zoiel

Total Points: 692
Total Questions: 90
Total Answers: 89

Location: Rwanda
Member since Thu, Feb 10, 2022
2 Years ago
;