 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mike Collins Guest
|
Posted: Fri Apr 13, 2007 5:47 pm Post subject: propagating values in html page. |
|
|
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 |
|
| Back to top |
|
 |
Tom Guest
|
Posted: Fri Apr 13, 2007 10:04 pm Post subject: Re: propagating values in html page. |
|
|
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 |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Apr 13, 2007 10:24 pm Post subject: Re: propagating values in html page. |
|
|
"Mike Collins" <its@TheBottomOfThePost> wrote in message
news:461f6803 (AT) newsgroups (DOT) borland.com...
| Quote: | 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
| Quote: | 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 |
|
| 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
|
|