Article View: borland.public.cppbuilder.internet.web
Article #83Re: Help please DOM & OnDocumentComplete
From: Remy Lebeau (TeamB)
Date: Thu, 19 Apr 2007 23:19
Date: Thu, 19 Apr 2007 23:19
34 lines
2156 bytes
2156 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message news:4627dc3b@newsgroups.borland.com... > I'm using a TCppWebBrowser to process a users registeration for > our software. We return them a formated html document that displays > there uninstall code. However, i need access to this code in order to > save it to file. the code is identifiable by the tag <p id="uninstall">CODE > HERE</p> . What exactly are you having a problem with? Have you read MSDN's documentation on the IHTMLDocument2 and related interfaces yet? > can any one give me some starting code to help me get this value back > out of the pages source. Simply query the Document property for the IHTMLDocument2 interface, then use its 'all' collection to retreive a pointer to the "uninstall" element, then grab the Text from that. > I know that i need to us the OnDocumentComplete event and the > QueryInterface to gain access to the underlying html by there after > i'm totally stuck. Can't find any good examples on google so any help > would be most appriehaited. Examples of using IHTMLDocument2 have been posted many times before. Go to http://www.deja.com and search through the newsgroup archives. Gambit
Technical Details
Message-ID:
<4627fa2e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4627dc3b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,8719e130c5e38942 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: <4627dc3b@newsgroups.borland.com> Subject: Re: Help please DOM & OnDocumentComplete Date: Thu, 19 Apr 2007 16:19:27 -0700 Lines: 36 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.82.60.244 Message-ID: <4627fa2e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177025070 75.82.60.244 (19 Apr 2007 16:24:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail