Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by Mike Collins
Fri, 13 Apr 2007 12:47
propagating values in html page.
Author: Mike Collins
Date: Fri, 13 Apr 2007 12:47
Date: Fri, 13 Apr 2007 12:47
18 lines
1788 bytes
1788 bytes
Hi all, got a design issue and not sure how to address it - was hoping someone can point me in the right direction. We have a custom installer written in BCB that uses a TCppWebBrowser to all the user to register there product. The Browser simply connections to a web page on our server via https. I use the CppWebBrowser because i didn't want to get tied down with coding the https communications. 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. I assume i need to save the html to some sort of stream and then parse it before loading it. However I've no idea on how to do any of this: Many thanks in advance, Mike Collins
Re: propagating values in html page.
Author: Tom
Date: Fri, 13 Apr 2007 17:04
Date: Fri, 13 Apr 2007 17:04
8 lines
1118 bytes
1118 bytes
Since you control the http server why not have it propogate the fields for you? If not, then do a search in the archives for filling form fields and you'll find tons and tons of examples. -Tom
Re: propagating values in html page.
Author: 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
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