 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mike Collins Guest
|
Posted: Fri Apr 20, 2007 3:41 am Post subject: Help please DOM & OnDocumentComplete |
|
|
Hi all, just wondering if any one could help me out here - pulling my hair
out with this. 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> .can any one give me some starting code to help me get this value
back out of the pages source. 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.
Many thanks in advance,
Mike |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Apr 20, 2007 4:19 am Post subject: Re: Help please DOM & OnDocumentComplete |
|
|
"Mike Collins" <its@TheBottomOfThePost> wrote in message
news:4627dc3b (AT) newsgroups (DOT) borland.com...
| Quote: | 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?
| Quote: | 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.
| Quote: | 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 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|