If you use GetLayoutObjectAttribute and the attribute of "content", you can parse it out to see if the closing HTML tag of "</html>" is present. If it is, then the page has finished loading. This isn't 100% foolproof, as all web pages aren't well-formed, but it will get you the majority of them.
scraping the webviewer for the "</body>" tag usually works.
if [ patterncount( GetLayoutObjectAttribute( "WebviewerName" ; "content" ) ; "</body>" ) > 0 ]
good to go, do your stuff
exit or show error
Well, what I need is more a kind of a state Filemaker gives back or a
lopp that does not goes into Nirvana if the "loading" does not end
because a closing "body" is missing...
Am 31.10.15 um 21:33 schrieb Mike Beargie:
Can I check if a website is completly loaded in the webviewer-object?
Antwort von Mike Beargie
in /Discussions/ - Komplette Diskussion anzeigen
Yes, you do need a loop. Set a time limit of how long you're willing to way, then use the code Mike B gave you. Loop until you either get a good scrape, or exit and show an error (or don't show the button until you get a good result).