Coordinates of an input type image

In my previous post, Paul Hastings asked how to capture the x,y from a clicked image. In response to that, I made a small workaround that requires an invisible text field.

This is not the cleanest way to do it and I'm sure someone will come up with a simpler solution.


In my previous post, Paul Hastings asked how to capture the x,y from a clicked image. In response to that, I made a small workaround that requires an invisible text field.

This is not the cleanest way to do it and I'm sure someone will come up with a simpler solution.

So here it is:

myImageCoords.text = "x:"+myImage._xmouse+" | y:"+myImage._ymouse; submitForm();

View example
Download the source