September 25, 200619 yr Newbies Hey Guys.... running Filmaker 8.5 Advanced. I'm trying to extract text from a web page using the GetLayoutObjectAttribute function, but I have having a lot of trouble getting it to work. This is the calculation field I am using" [color:red]outputtext = GetLayoutObjectAttribute ( "webbox" ; "content" ) as a TEXT result. As a text field I get no resulting HTML. As a container I get the resulting HTML source, but it is un-parsable. Should the result be a Container or Text ? What I am doing wrong ?
September 26, 200619 yr Don't make it a calc field; make it a set-field script step. If it is a calc field you will at least have to make it unstored and refresh it after the whole page loads.
September 26, 200619 yr "webbox" is the object name you have the web viewer, right? Then it should work. Have you tried using a variable instead of outputtext? In your script, you also have to make sure to wait for the full source to come in. I've posted an example in the web viewer forum a couple of weeks ago.
Create an account or sign in to comment