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]> |
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? 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 >