Article View: borland.public.cppbuilder.internet.web
Article #80Re: propagating values in html page.
From: Remy Lebeau (TeamB)
Date: Fri, 13 Apr 2007 17:24
Date: Fri, 13 Apr 2007 17:24
32 lines
1994 bytes
1994 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message
news:461f6803@newsgroups.borland.com...
> The system works fine but now i need to propagate two fields on
> the html page, before it is displayed to the user. Currently i'm
loading
> the page by calling the navigate() function. Can anyone point me in
> the right direction for resolving this.
In the TCppWebBrowser's OnDocumentComplete event, you can use the
browser's DOM interfaces to access the individual elements of the
page. Starting with the Document property, query it for the
IHTMLDocument2 interface, and then go from there. Refer to MSDN for
more details:
Interfaces and Scripting Objects
http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/interface.asp
IHTMLDocument2 Interface
http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/document2/document2.asp
> I assume i need to save the html to some sort of stream and then
> parse it before loading it.
No, you do not. The content can be updated dyanmically inside the
browser.
Gambit
Technical Details
Message-ID:
<461fbddd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<461f6803@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,75a254d7c11572dd 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: <461f6803@newsgroups.borland.com> Subject: Re: propagating values in html page. Date: Fri, 13 Apr 2007 10:24:58 -0700 Lines: 34 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: <461fbddd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1176485341 75.83.34.171 (13 Apr 2007 10:29:01 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail