🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1621

Re: TCppWebBrowser and Framed HTML Pages

#1621
From: Remy Lebeau (TeamB)
Date: Wed, 03 Nov 2004 23:50
18 lines
1737 bytes
"Saulo I. Regis" <saulo@password.info> wrote in message
news:418954e8@newsgroups.borland.com...

> when I execute this code with the TCppWebBrowser component
> fully loaded with the desired content I'm receiving just the "root"
> html code of the homepage that defines the FRAMESET structure
> of the page!

That is because you are querying the HTML from the wrong Document object.
You are not taking frames into account at all.  IHTMLDocument2 has a frames
collection in it.  You are supposed to use that collection to get the
IHTMLWindow2 interface for the desired frame, and then you can get the
frame's IHTMLDocument2 interface from that.  Then you can get the HTML that
you are interested in from that.


Gambit
Technical Details
Message-ID: <41896e7a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.wirehub.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <418954e8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2f5b16c00db0b7f3
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <418954e8@newsgroups.borland.com>
Subject: Re: TCppWebBrowser and Framed HTML Pages
Date: Wed, 3 Nov 2004 15:50:24 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41896e7a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099525754 68.69.17.41 (3 Nov 2004 15:49:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.wirehub.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail