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]>
Thanks for the pointers... :)

Here are the details:

Consider the situation:
<span>
   <a>
      To click
   </a>
</span>

Whenever I call the dispatchEvent on the <a> tag, my click is
simulated as expected. But when i call the dispatchEvent on the <span>
tag, the link is not followed. Does the dispatchEvent depend upon the
type of DOM node? That is, can the click event be simulated only on
elemnts which are actually clickable by default (like <a> etc)? Cant
it be simulated on "any" element in the DOM?

Thanks once again...

-Amit


On Wed, Feb 27, 2008 at 1:24 AM, Boris Zbarsky <[email protected]> wrote:
> Amit Saurav wrote:
> > Yes, i tried using the initMouseEvent() and dispatchEvent() calls on
> > the exact DOM elements, but that too doesn't seem to work.
>
> Doesn't seem to work how, exactly?
>
> I'd recommend giving http://www.chiark.greenend.org.uk/~sgtatham/bugs.html a
> read....
>
>
> -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.