|
Posted by johnebullock on 07/04/07 10:39
I am using an image input object to return the coordinates of a mouse
click in a form submit. This is working fine with one exception. In
IE the (x,y) are relative to the image, but in Firefox they are
relative to the frame. For example, a click on the image in IE
returns (5,5) but in Firefox the same location click returns (75,39).
Here is the html from the page:
<INPUT TYPE='image' STYLE='position:absolute;left:70;top:34;'
ID='lbl_image' NOSAVE ALIGN='top' BORDER='0' WIDTH='300' HEIGHT='100'
SRC='../../../cgi-bin/gtrtlm/c_lbl_image.cgi>
I say the Firefox coordinates returned are relative to the frame
because the style command that positions the image is the same offset
coming back in my (x,y) pair.
Is this normal behavior for Firefox, and if so, what is the best way
to code around it so the correct image relative coordinates are
returned?
[Back to original message]
|