Answers Posted October 14, 2010 Posted October 14, 2010 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
Lee Smith Posted October 14, 2010 Posted October 14, 2010 Why aren't you using "Source" and "Content" for this?
comment Posted October 14, 2010 Posted October 14, 2010 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
Answers Posted October 15, 2010 Author Posted October 15, 2010 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.
comment Posted October 16, 2010 Posted October 16, 2010 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.
Recommended Posts
This topic is 5524 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 accountSign in
Already have an account? Sign in here.
Sign In Now