Re: Problem with HTMLDocumentEvents on Gmail
- From: weirdo3d <weirdo3d@xxxxxxxxx>
- Date: Tue, 26 Jun 2007 16:53:11 -0000
On Jun 6, 4:45 pm, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
"weirdo3d" <weird...@xxxxxxxxx> wrote in message
news:1181112741.741216.236600@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Have a look at this line.
FSinkComponent.Connect(WebBrowser.Document as IHTMLDocument2);
where FSinkComponenet is a HTMLDocumentEvents object.
Each time, DocumentComplete event is received, FSinkComponent gets
overridden with the new WebBrowser.Document, and i get onClick events
from only that frame.
So create a separate sink object for each frame.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Hello!
Hope you're fine. I found the solution to the problem. Actually at
each DocumentComplete event, i was not using the new pUnk pointer.
Thanks for your help anyway :)
I have another problem..
I've created a toolbar for IE using IWebBrowser2 and
HMTLDocumentEvents. When a user clicks on something like, 'Attach a
file', a dialog box opens, and the onClick event returns me the
Element's TagName, innerHtml etc. But from the dialog, when the user
selects a file, I get no information about it. It want to know the
filename and path that the user selected.
Can you please guide me how I can do that?
I'm using Delphi2006 on WindowsXP, any help or reference would be
greatly appreciated.
Kind Regards,
Ahmed
.
- References:
- Re: Problem with HTMLDocumentEvents on Gmail
- From: weirdo3d
- Re: Problem with HTMLDocumentEvents on Gmail
- From: Igor Tandetnik
- Re: Problem with HTMLDocumentEvents on Gmail
- From: weirdo3d
- Re: Problem with HTMLDocumentEvents on Gmail
- From: Igor Tandetnik
- Re: Problem with HTMLDocumentEvents on Gmail
- From: weirdo3d
- Re: Problem with HTMLDocumentEvents on Gmail
- From: Igor Tandetnik
- Re: Problem with HTMLDocumentEvents on Gmail
- Prev by Date: How to get a dialog box's information using IWebBrowser2 and HMTLDocumentEvents
- Next by Date: Re: How to get a dialog box's information using IWebBrowser2 and HMTLDocumentEvents
- Previous by thread: Re: Problem with HTMLDocumentEvents on Gmail
- Next by thread: Waiting for synchronous IWebBrowser2 Navigate
- Index(es):