WebBrowser Control Frame Documents

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi there,

I'm having great difficulty obtaining all of the document data for a
framed HTML document.

Once the documentcomplete event has fired for the last time I am
analysing the webbrowsers document property. Unfortunately in a framed HTML
document this is merely the frame set description, and does not contain the
HTML data for the contained frames.

So my question is, if I navigate to an HTML page that consists of 2
frames, how do I get the document objects for the 2 HTML documents contained
within those frames?

Thanks loads in advance!

Nick.
 
Nick,

I have the same question, I have placed the question as well somewhere else.

Cor
 
Before I misunderstood you, I mean with the 2.0 Net webbrowser.

With other ones there is the Downloadcomplete event which tells that
everything is downloaded.

Cor
 
Hi Cor,

Yup that's exactly what I'm after too!

Snap! haha.

I'll keep you posted if I find anything also. It's a great control but
one thing I think is a bit blind is the inability to clone the HTML document
object, unless I'm missing something...

Anyway, good luck, let me know if you find anything!

Nick.
 
Nick,

If I hear something and remember it me, than I let you know (I have your
email address).

Cor
 
Hi AMDRIT,

Thanks for your help...

<webbrowser>.Document.Window.Frames

This indeed holds a collection to the frames of the document, just what
I was looking for, thanks. My only problem at current is now getting each
document object without experiencing a security exception. I seem to be
able to get the one at index 0, but not 1. Strange...

Anyway, thanks it's much appreciated.

Nick
 
Hi there,

Now that *is* crazy, so even though the data has downloaded and I can
view it by right clicking the frame and then "view source", I have no other
form of access to it? Maybe there is a way to derive a new control which
exposes this information in another way...

Thanks loads for your help!

Nick.
 
Nick,

As I thought it was, this part is very old in my opinion, with the idea that
this could not be it.

I forgot to try it, but am glad you did it.

:-)))

Cor
 
Back
Top