+ Start a Discussion
ngabraningabrani 

Coordinates of a click on image in a Visualforce page

I need to display an image in Salesforce Visualforce page with the following behavior. When the image is clicked, depending upon the x and y coordinates of the click, I need to update the contents of a table on the same page. How do I get the x and y coordinates of the image that the user has clicked.

 

Appreciate your help.

bob_buzzardbob_buzzard

This sounds like javascript rather than visualforce.

 

There's a good page on this at:

 

http://www.emanueleferonato.com/2006/09/02/click-image-and-get-coordinates-with-javascript/