OS Version? Filemaker Version?
A Google for "Getlayoutobjectattribute parsing"
You can create a button that will "get" the contents of the web view via the GetLayoutObjectAttribute function.
First, give the web view object a name.
Next, create a script that sets a field or variable using:
GetLayoutObjectAttribute(objectName;"source") -- returns the URL of the object
GetLayoutObjectAttribute(objectName;"content") -- returns the current content of the object (html, xml, etc.)
Now create a button which calls the newly created script.
if you're going to parse xml, take a look at http://www.briandunning.com/cf/1 for a function to simplify parsing.
On 25 Feb, 10:55, "MichaelR" <michaeliru...@gmail.com> wrote: > There was a very useful thread a few months ago called > "GetLayoutObjectAttribute" which had a nice technique for ensuring > that when you wanted to parse the HTML content of a Web Viewer object > you could wait until the content was available using a simple Loop. > > I have used this technique and it works perfectly. Thanks to Howard > Schlossberg! > > However, I need to use something similar for a database that is being > published using IWP and for some reason, when I evaluate the > GetLayoutObjectAttribute("wv";"content") function, and display it on > screen in IWP (for debugging) Filemaker does not return the source > HTML as I would expect and hope. It returns the URL! This is not much > use to me as I need to parse the HTML return of a PERL script running > on a remote server before the database can carry on with its work. > > Has anybody tried to use this or have any ideas how I can work around? > > Many thanks in advance for any help > Michael Well, turns out it is a limitation in FM 8.5. It is there in the small print in the Web Publishing Guide. I always find it quite annoyingwhen you get these seemingly arbitrary flaws in functionality. Anyway, on the plus side, Troi's URL plugin does not seem to suffer the same problem with its GetURL command. Need to test a bit more but looks like a much more capable tool for manipulating web pages, even if it can't render them! I guess the plugin and the web viewer together are a pretty good combo though.