Re: Simulating clicks on the DOM node of the GMAIL page.
Martijn <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 2/27/08, Amit Saurav <[email protected]> wrote: > 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? Amit, the span is outside of the link, so that's why the link is not followed, if the span would be inside of the link, the link would be followed. Regards, Martijn > 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 > > > _______________________________________________ > dev-tech-dom mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-dom > -- Martijn Wargers - Help Mozilla! http://weblogs.mozillazine.org/qa/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22