BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help please DOM & OnDocumentComplete

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Mike Collins
Guest





PostPosted: Fri Apr 20, 2007 3:41 am    Post subject: Help please DOM & OnDocumentComplete Reply with quote



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





PostPosted: Fri Apr 20, 2007 4:19 am    Post subject: Re: Help please DOM & OnDocumentComplete Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.