Home All Groups Group Topic Archive Search About

WebBrowser Control Frame Documents

Author
25 May 2006 10:12 PM
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.

Author
26 May 2006 10:16 AM
Cor Ligthert [MVP]
Nick,

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

Cor

Show quoteHide quote
"Nick" <a@a.com> schreef in bericht
news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
> 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.
>
Author
26 May 2006 10:18 AM
Cor Ligthert [MVP]
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

Show quoteHide quote
"Nick" <a@a.com> schreef in bericht
news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
> 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.
>
Author
26 May 2006 10:34 AM
NickP
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.

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:OzlV91KgGHA.4304@TK2MSFTNGP05.phx.gbl...
> 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
>
> "Nick" <a@a.com> schreef in bericht
> news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
>> 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.
>>
>
>
Author
26 May 2006 10:52 AM
Cor Ligthert [MVP]
Nick,

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

Cor

Show quoteHide quote
"NickP" <a@a.com> schreef in bericht
news:%23c9s7$KgGHA.5104@TK2MSFTNGP04.phx.gbl...
> 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.
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:OzlV91KgGHA.4304@TK2MSFTNGP05.phx.gbl...
>> 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
>>
>> "Nick" <a@a.com> schreef in bericht
>> news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
>>> 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.
>>>
>>
>>
>
>
Author
26 May 2006 3:15 PM
NickP
Cheers Cor,

    That's much appreciated.

Nick.

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:%23UPgKJLgGHA.356@TK2MSFTNGP02.phx.gbl...
> Nick,
>
> If I hear something and remember it me, than I let you know (I have your
> email address).
>
> Cor
>
> "NickP" <a@a.com> schreef in bericht
> news:%23c9s7$KgGHA.5104@TK2MSFTNGP04.phx.gbl...
>> 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.
>>
>> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
>> news:OzlV91KgGHA.4304@TK2MSFTNGP05.phx.gbl...
>>> 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
>>>
>>> "Nick" <a@a.com> schreef in bericht
>>> news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
>>>> 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.
>>>>
>>>
>>>
>>
>>
>
>
Author
26 May 2006 3:29 PM
AMDRIT
Try something like
parent.frames.FRAME2.sID.innertext

http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/frame.asp


Show quoteHide quote
"Nick" <a@a.com> wrote in message
news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
> 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.
>
Author
30 May 2006 9:46 AM
NickP
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

Show quoteHide quote
"AMDRIT" <amd***@hotmail.com> wrote in message
news:OUvrbkNgGHA.4144@TK2MSFTNGP02.phx.gbl...
> Try something like
> parent.frames.FRAME2.sID.innertext
>
> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/frame.asp
>
>
> "Nick" <a@a.com> wrote in message
> news:ev1YihEgGHA.3572@TK2MSFTNGP04.phx.gbl...
>> 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.
>>
>
>
Author
30 May 2006 7:32 PM
cweeks78681
Well, you may ... or may not ... find something useful here:

"Accessing Frames in the Managed HTML Document Object Model"
http://tinyurl.com/q7mx3


"About Cross-Frame Scripting and Security"
http://tinyurl.com/o0gp
Author
31 May 2006 8:55 AM
NickP
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.

<cweeks78***@yahoo.com> wrote in message
Show quoteHide quote
news:1149017579.858180.278530@j73g2000cwa.googlegroups.com...
> Well, you may ... or may not ... find something useful here:
>
> "Accessing Frames in the Managed HTML Document Object Model"
> http://tinyurl.com/q7mx3
>
>
> "About Cross-Frame Scripting and Security"
> http://tinyurl.com/o0gp
>
Author
31 May 2006 5:10 PM
Cor Ligthert [MVP]
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


Show quoteHide quote
"NickP" <a@a.com> schreef in bericht
news:uBBLw$IhGHA.4104@TK2MSFTNGP04.phx.gbl...
> 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.
>
> <cweeks78***@yahoo.com> wrote in message
> news:1149017579.858180.278530@j73g2000cwa.googlegroups.com...
>> Well, you may ... or may not ... find something useful here:
>>
>> "Accessing Frames in the Managed HTML Document Object Model"
>> http://tinyurl.com/q7mx3
>>
>>
>> "About Cross-Frame Scripting and Security"
>> http://tinyurl.com/o0gp
>>
>
>