function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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/