Article View: borland.public.cppbuilder.internet.web
Article #298Re: Invoking the events when filling in fields using TCppWebBrowser
From: Trevor Keegan
Date: Thu, 22 Feb 2007 06:33
Date: Thu, 22 Feb 2007 06:33
25 lines
1870 bytes
1870 bytes
Hello Remy,
I did see the Invoke method there, but it looked as though I needed to send
in a whole bunch of parameters. So I thought there might be another way :)
> Alternatively, use the IHTMLElement3::fireEvent() method instead,
> which does the above work for you.
I like the sound of this....but please help me, how do I get to the
IHTMLElement3....I current have this:
TComInterface<IHTMLInputTextElement> TextInput;
Disp->QueryInterface( IID_IHTMLInputTextElement,
(LPVOID*)&TextInput );
if( TextInput )
{
//Set the value in the field
TextInput->put_value( WideString( Value ) );
}
Should I add something like IHTMLElement3::fireEvent( "OnBlur", TextInput )
?
Regards
Trevor Keegan
Technical Details
Message-ID:
<45dd392b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45dcef87$1@newsgroups.borland.com> <45dcf9ff$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 Reply-To: "Trevor Keegan" <tkeegan@ealink.com> From: "Trevor Keegan" <tkeegan@ealink.com> Newsgroups: borland.public.cppbuilder.internet.web References: <45dcef87$1@newsgroups.borland.com> <45dcf9ff$1@newsgroups.borland.com> Subject: Re: Invoking the events when filling in fields using TCppWebBrowser Date: Thu, 22 Feb 2007 14:33:50 +0800 Lines: 27 Organization: EA-Link System Sdn Bhd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 219.95.19.195 Message-ID: <45dd392b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172125995 219.95.19.195 (21 Feb 2007 22:33:15 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail