Re: Simulating clicks on the DOM node of the GMAIL page.

"Amit Saurav" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Yes, i tried using the initMouseEvent() and dispatchEvent() calls on
the exact DOM elements, but that too doesn't seem to work. I don't see
what the problem is.

Thanks for your help.

Regards,
Amit

On Wed, Feb 27, 2008 at 1:09 AM, Boris Zbarsky <[email protected]> wrote:
> Amit Saurav wrote:
> > Yes, I am calling this on the iframe on the gmail page which contains
> > the emails. Probably the display is set to none, which i am not sire
> > of, as it is difficult to see in the DOM. Is there a problem in
> > simulating this event on iframes in general?
>
> The method you're using dispatches events based on actual screen positions.  If
> display:none is set on the iframe, there are no actual screen positions
> involved, so it can't work.  As a result it bails out.
>
> If you want to just dispatch a DOM click event (as opposed to closely simulating
> an actual mouse click), I'd use the DOM event APIs for that purpose...
>
>
> -Boris
> _______________________________________________
> dev-tech-dom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-dom
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.