1 Reply Latest reply on Apr 30, 2009 2:40 PM by RSchaub

    trying to extract HTML using Web Viewer beyond initial page

    wasp89

      Title

      trying to extract HTML using Web Viewer beyond initial page

      Post

      By giving my web viewer an object name, I have sucessfully pulled the HTML from it for the first HTML page that loads.  My web viewer is loading based on a field -- where the URL is typed in.

       

      I use the following functions:

       

      to get HTML:

       

      GetLayoutObjectAttribute ( "dataviewer" ; "content"  )

       

      to get the URL of the current page:

       

      GetLayoutObjectAttribute ( "dataviewer" ; "source"  )

       

      Here's the wierd part though.

       

      if I load my first page A.html and then run the two functions above, it works perfectly.  I can extract the HTML and the URL and store it in a field.

       

      however, if I navigate to page B.html from A.html using the web viewer and then run the functions above, it grabs the new URL just fine.  But the HTML

      it grabs is that of the first page.  It's odd behavior and I can't figure out what the problem is.  Anybody have this problem and/or advice on what to do?

       

      Once I'm at page B.html and run the functions, I want to get the HTML from page B.html, not A.hmlt.

       

      thanks,

      Jeremy