Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Mike Collins
Thu, 19 Apr 2007 22:41
Help please DOM & OnDocumentComplete
Author: Mike Collins
Date: Thu, 19 Apr 2007 22:41
Date: Thu, 19 Apr 2007 22:41
14 lines
1639 bytes
1639 bytes
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
Re: Help please DOM & OnDocumentComplete
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads