Article View: borland.public.cppbuilder.internet.web
Article #295Re: Invoking the events when filling in fields using TCppWebBrowser
From: Remy Lebeau (TeamB)
Date: Thu, 22 Feb 2007 02:03
Date: Thu, 22 Feb 2007 02:03
20 lines
1616 bytes
1616 bytes
"Trevor Keegan" <tkeegan@ealink.com> wrote in message news:45dcef87$1@newsgroups.borland.com... > What do I need to do to get these events to fire? Fire them manually. The browser's DOM interfaces provide access to them. Events are normally accessed via the IDispatch interface. So, for example, to fire the onblur event, you would call IHTMLElement2::get_onblur(), which returns a VARIANT containing an IDispatch interface. You would then call the IDispatch::Invoke() method, specifying DISPID_VALUE as the ID to execute. Alternatively, use the IHTMLElement3::fireEvent() method instead, which does the above work for you. Gambit
Technical Details
Message-ID:
<45dcf9ff$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45dcef87$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,41646948ec07ae8b X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <45dcef87$1@newsgroups.borland.com> Subject: Re: Invoking the events when filling in fields using TCppWebBrowser Date: Wed, 21 Feb 2007 18:03:53 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45dcf9ff$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172109823 75.83.34.171 (21 Feb 2007 18:03:43 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail