trying to extract HTML using Web Viewer beyond initial page
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.
Once on page B try in a script
Set Web Viewer (reset) or (reload) this may reset the GetLayoutObjectAttribute ( "dataviewer" ; "content" )
When you get it you should load the data into a non calculation field for safe keeping.
Have you seen my file yet http://starrdata.com/CaptureCF.htm
I use the technique to grab data web two different sites