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 

propagating values in html page.

 
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 13, 2007 5:47 pm    Post subject: propagating values in html page. Reply with quote



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





PostPosted: Fri Apr 13, 2007 10:04 pm    Post subject: Re: propagating values in html page. Reply with quote



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





PostPosted: Fri Apr 13, 2007 10:24 pm    Post subject: Re: propagating values in html page. Reply with quote



"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
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.