Jump to content

Extract text from web window ( parse using GetLayoutObjectAttribute )


Mavericktrader

This topic is 6451 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

"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.

Link to comment
Share on other sites

This topic is 6451 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.