WebBrowser Control Frame Documents

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nick

    #1

    WebBrowser Control Frame Documents

    Hi there,

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

    Once the documentcomplet e 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.


  • Cor Ligthert [MVP]

    #2
    Re: WebBrowser Control Frame Documents

    Nick,

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

    Cor

    "Nick" <a@a.com> schreef in bericht
    news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...[color=blue]
    > Hi there,
    >
    > I'm having great difficulty obtaining all of the document data for a
    > framed HTML document.
    >
    > Once the documentcomplet e 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.
    >[/color]


    Comment

    • Cor Ligthert [MVP]

      #3
      Re: WebBrowser Control Frame Documents

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

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

      Cor

      "Nick" <a@a.com> schreef in bericht
      news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...[color=blue]
      > Hi there,
      >
      > I'm having great difficulty obtaining all of the document data for a
      > framed HTML document.
      >
      > Once the documentcomplet e 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.
      >[/color]


      Comment

      • NickP

        #4
        Re: WebBrowser Control Frame Documents

        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]" <notmyfirstname @planet.nl> wrote in message
        news:OzlV91KgGH A.4304@TK2MSFTN GP05.phx.gbl...[color=blue]
        > Before I misunderstood you, I mean with the 2.0 Net webbrowser.
        >
        > With other ones there is the Downloadcomplet e event which tells that
        > everything is downloaded.
        >
        > Cor
        >
        > "Nick" <a@a.com> schreef in bericht
        > news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...[color=green]
        >> Hi there,
        >>
        >> I'm having great difficulty obtaining all of the document data for a
        >> framed HTML document.
        >>
        >> Once the documentcomplet e 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.
        >>[/color]
        >
        >[/color]


        Comment

        • Cor Ligthert [MVP]

          #5
          Re: WebBrowser Control Frame Documents

          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$Kg GHA.5104@TK2MSF TNGP04.phx.gbl. ..[color=blue]
          > 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]" <notmyfirstname @planet.nl> wrote in message
          > news:OzlV91KgGH A.4304@TK2MSFTN GP05.phx.gbl...[color=green]
          >> Before I misunderstood you, I mean with the 2.0 Net webbrowser.
          >>
          >> With other ones there is the Downloadcomplet e event which tells that
          >> everything is downloaded.
          >>
          >> Cor
          >>
          >> "Nick" <a@a.com> schreef in bericht
          >> news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...[color=darkred]
          >>> Hi there,
          >>>
          >>> I'm having great difficulty obtaining all of the document data for a
          >>> framed HTML document.
          >>>
          >>> Once the documentcomplet e 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.
          >>>[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • NickP

            #6
            Re: WebBrowser Control Frame Documents

            Cheers Cor,

            That's much appreciated.

            Nick.

            "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
            news:%23UPgKJLg GHA.356@TK2MSFT NGP02.phx.gbl.. .[color=blue]
            > 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$Kg GHA.5104@TK2MSF TNGP04.phx.gbl. ..[color=green]
            >> 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]" <notmyfirstname @planet.nl> wrote in message
            >> news:OzlV91KgGH A.4304@TK2MSFTN GP05.phx.gbl...[color=darkred]
            >>> Before I misunderstood you, I mean with the 2.0 Net webbrowser.
            >>>
            >>> With other ones there is the Downloadcomplet e event which tells that
            >>> everything is downloaded.
            >>>
            >>> Cor
            >>>
            >>> "Nick" <a@a.com> schreef in bericht
            >>> news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...
            >>>> Hi there,
            >>>>
            >>>> I'm having great difficulty obtaining all of the document data for a
            >>>> framed HTML document.
            >>>>
            >>>> Once the documentcomplet e 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.
            >>>>
            >>>
            >>>[/color]
            >>
            >>[/color]
            >
            >[/color]


            Comment

            • AMDRIT

              #7
              Re: WebBrowser Control Frame Documents

              Try something like
              parent.frames.F RAME2.sID.inner text

              http://msdn.microsoft.com/workshop/a...ects/frame.asp


              "Nick" <a@a.com> wrote in message
              news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...[color=blue]
              > Hi there,
              >
              > I'm having great difficulty obtaining all of the document data for a
              > framed HTML document.
              >
              > Once the documentcomplet e 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.
              >[/color]


              Comment

              • NickP

                #8
                Re: WebBrowser Control Frame Documents

                Hi AMDRIT,

                Thanks for your help...

                <webbrowser>.Do cument.Window.F rames

                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

                "AMDRIT" <amdrit@hotmail .com> wrote in message
                news:OUvrbkNgGH A.4144@TK2MSFTN GP02.phx.gbl...[color=blue]
                > Try something like
                > parent.frames.F RAME2.sID.inner text
                >
                > http://msdn.microsoft.com/workshop/a...ects/frame.asp
                >
                >
                > "Nick" <a@a.com> wrote in message
                > news:ev1YihEgGH A.3572@TK2MSFTN GP04.phx.gbl...[color=green]
                >> Hi there,
                >>
                >> I'm having great difficulty obtaining all of the document data for a
                >> framed HTML document.
                >>
                >> Once the documentcomplet e 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.
                >>[/color]
                >
                >[/color]


                Comment

                • cweeks78681@yahoo.com

                  #9
                  Re: WebBrowser Control Frame Documents

                  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

                  Comment

                  • NickP

                    #10
                    Re: WebBrowser Control Frame Documents

                    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.

                    <cweeks78681@ya hoo.com> wrote in message
                    news:1149017579 .858180.278530@ j73g2000cwa.goo glegroups.com.. .[color=blue]
                    > 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
                    >[/color]


                    Comment

                    • Cor Ligthert [MVP]

                      #11
                      Re: WebBrowser Control Frame Documents

                      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


                      "NickP" <a@a.com> schreef in bericht
                      news:uBBLw$IhGH A.4104@TK2MSFTN GP04.phx.gbl...[color=blue]
                      > 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.
                      >
                      > <cweeks78681@ya hoo.com> wrote in message
                      > news:1149017579 .858180.278530@ j73g2000cwa.goo glegroups.com.. .[color=green]
                      >> 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
                      >>[/color]
                      >
                      >[/color]


                      Comment

                      Working...