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: > Hi Boris, > > I could not find the click handlers cuz the entire javascript on gmail > page is obfuscated and its impossible to figure out whats going on. I > thought of using the venkman debugger but could not find the exact > function that was called each time we click somethin on the page. > > One question, can we disaptchEvents on text nodes? You could try it out yourself, no? Just add a click listener and dispatch the click event on it. Regards, Martijn > Thanks, > Amit > > > On Wed, Feb 27, 2008 at 11:32 AM, Boris Zbarsky <[email protected]> wrote: > > Amit Saurav wrote: > > > For example, the emails, are also <span> > > > texts but when clicked by a user, the corresponding mails open. > > > > So it sounds like there is a click handler somewhere that does that. Have you > > found it? Have you made sure you're dispatching a click to some descendant of > > the node that has the handler? If the handler checks event.target, you probably > > need to dispatch to a particular descendant, for that matter. > > > > In general, you probably just want to dispatch the click to whatever node > > (possibly a Text node!) the user would actually click on. > > > > > > -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