|
Posted by johnebullock on 07/07/07 16:41
On Jul 5, 5:41 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> Scripsit johnebull...@hotmail.com:
>
> > I am using an imageinputobject to return the coordinates of a mouse
> > click in a form submit. This is working fine with one exception.
>
> You mean people who cannot click on a particular location because they are
> using a speech browser or they suffer from motoric disability or they lack a
> mouse right now or they just don't understand the concept?
>
> > InIEthe (x,y) are relative to the image, but inFirefoxthey are
> > relative to the frame.
>
> Frame? What frame? Why don't you post a URL?
>
> > Here is the html from the page:
>
> > <INPUTTYPE='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>
>
> It's invalid markup, and it contains incorrect CSS code (the declarations
> for left and top are ignored by conforming browsers), so what can you
> expect?
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
It's running on a private corporate firewalled site, so I can't post
the URL or I would have.
I figured out another way to do it, I was really just curious why the
difference in coordinates returned. I have since found a lot of other
inconsistencies as well, and
will know to code around them in the future.
By the way, the positioning does work in Firefox and IE, even if it's
invalid markup. Those are the only two browsers the customer will be
using. How is the markup invalid anyways?
Navigation:
[Reply to this message]
|