Does anyone know if it is possible to use javascript to process pixel coordinates of a point on an imagemap to simulate an onclick event, as if the user had clicked with the mouse at that location?
Set two additional hidden input to store the x and y coordinates. When simulate the click, write to the hidden boxes the desired x and y coordinate (in unit px) before calling the .submit(). On the server, read the hidden boxes x and y in case the image submit button does not return the anticipated (x,y) coordinate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.