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]>
That was a great pointer, thanks for the info Neil. I just changed my
"click" event to "mousedown" followed by "mouseup" and the email links
are now being followed! :D

But the problem is, initially the texts on the sidebar (viz, compose,
inbox, sent items) were being followed by my function, ie they
responded to the "click" event, and now they have stopped working. I
somehow naively thought that a "mousedown" followed by "mouseup" would
eventually mean a "click" but its not. So i should find a way to
distinguish between when to fire a click and when to fire a mousedown
and mouseup. Probably the same "role=link" attribute might help to
distinguish between the two but i am affraid I'm doing a lot of
hardcoding in my code and tomorrow if google decides to remove this
attribute, my program would get messed up!

Thanks for all your help... If i am missing somethin or making a
mistake please help me out...

Regards,
Amit

On Wed, Feb 27, 2008 at 11:36 AM, Neil Deakin <[email protected]> wrote:
> Amit Saurav wrote:
>  > Hello Martjin,
>  >
>  > Almost all the text on the gmail inbox page are clickable and cause
>  > some action on the page. For example, the emails, are also <span>
>  > texts but when clicked by a user, the corresponding mails open. All
>  > these do not have any <a> tags. And i simply want to simulate this
>  > process of clicking all these "pseudo" links on the gmail page,
>  > programatically thro my extension.
>  >
>  > Am i doin somethin wrong or missing somethin?
>  >
>
>  I can't tell from the gmail source code, but the mail message response
>  occurs before releasing the mouse button, which suggests to me that you
>  actually want the mousedown event, not the click event.
>
>
> _______________________________________________
>  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.