Jump to content
Server Maintenance This Week. ×

Copying contents of a Web Viewer Object


Answers

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

Recommended Posts

I want my script to select the contents of the web object & copy and paste the contents in a field. then I have a calculation based on

I have the script go to the object, but will not select all. Seems like it should be simple. What am I missing?

Thanks,

Caroline

Link to comment
Share on other sites

Instead of copy/paste, give your web viewer an object name, then use the GetLayoutObjectAttribute() function to get the content:

http://www.filemaker.com/11help/html/func_ref3.33.9.html#1027917

Yes why am I not using GetLayoutObjectAttribute(), good question! Well I created a script that uses that function but it does not get all the content of the web viewer object, just the header. This function does not work as a calculation.

Link to comment
Share on other sites

AFAIK, you cannot programmatically copy the rendered page from a web viewer when using Windows:

http://fmforums.com/forum/showtopic.php?tid/199043/post/307569/#307569

it does not get all the content of the web viewer object, just the header.

That doesn't seem very likely. Perhaps you mean the real content is in a frame? If so, trying pointing your web viewer to the URL of the frame instead.

Of course, scraping the HTML off the web viewer should be the last choice for getting data from the web, not first.

Link to comment
Share on other sites

This topic is 4949 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.