Article View: borland.public.cppbuilder.internet.web
Article #292Re: Invoking the events when filling in fields using TCppWebBrowser
From: Eduardo Jauch
Date: Thu, 22 Feb 2007 01:33
Date: Thu, 22 Feb 2007 01:33
28 lines
1783 bytes
1783 bytes
Trevor Keegan escreveu:
> I am filling in a form on a website that invokes events when the field is
> changed. When I fill in the form through (say) IHTMLInputTextElement these
> events are not invoked.
>
> What do I need to do to get these events to fire?
>
Take a look at the events.
They must be links or Java functions.
What you can do is when you fill the form, trigger yourself the events. :)
If the event is a link, call the link.
If the event is a java script (what is most common), call it like if it
was a link:
CppWebBrowser->Navigate("javascript:Myfunc()");
Will work :)
Only a tip... If this operation will be done many times, maybe you must
consider using another component...
TCppWebBrowser, being a wraper for the ActiveX of IE is horrible... ;)
But will work for many applications :)
Technical Details
Message-ID:
<45dcf2bd@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.germany.com!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,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 21 Feb 2007 23:33:29 -0200 From: Eduardo Jauch <eduardo.jauch@gmail.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: Invoking the events when filling in fields using TCppWebBrowser References: <45dcef87$1@newsgroups.borland.com> In-Reply-To: <45dcef87$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 201.89.71.229 Message-ID: <45dcf2bd@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172107965 201.89.71.229 (21 Feb 2007 17:32:45 -0800) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail