Re: FileMaker Web Viewer
Re: FileMaker Web Viewer
- Subject: Re: FileMaker Web Viewer
- From: Bruce Robertson <email@hidden>
- Date: Sat, 29 Jul 2006 15:32:08 -0700
> On 7/29/06 at 3:05 AM, Bruce Robertson <email@hidden> wrote:
>
>> What is behind my request is even more esoteric. Let's say I create an
>> HTML form this way. Can I parse its contents once I start filling it
>> in?
>
> The raw HTML tip is so useful that I feel compelled to respond. :-)
>
> I don't think there's any direct or easy way to do what you want. A web
> view isn't even a field in a FileMaker Pro 8.5 database - it's just a
> layout object that displays a URL via Web Kit. Unless you store the
> HTML yourself in a field like you hinted, there's not even anything to
> manipulate.
>
> The new GetLayoutObjectAttribute function for calculations can return
> the current HTML content for a Web view object (when passed the
> "content" attribute - passing "source" just gets you back the URL), but
> that's about the extent of Web viewer customization that I've found.
>
> The layout-only design is a big clue that it's designed for presentation
> more than for Web applications. If you can generate the right HTML, it
> will display it, but I don't think there's an *external* way to interact
> with the Web view. I think the best you'll be able to do with
> JavaScript is use it to affect the document (perhaps adding or changing
> elements that do not display) and using GetLayoutObjectAttribute to
> examine the HTML and find the results.
Even if I WAS displaying external HTML the question remains the same.
You can indeed use the native FileMaker command you mentioned to get the
HTML content of the web viewer. However, this will not return any filled-in
form fields and that is the particular thing I am trying to do.
I guess I could find some way to actually submit the form and read out the
result. I know that (only with FileMaker Server Advanced) I could fully web
enable FileMaker and have the form submit to FIleMaker. But what else could
I do - either by merely reading the contents of the form fields, or by
submitting the form in some way, maybe using PHP or Smile or SQLite?
If the form was displayed in an actual Safari window I could do something
with do javasript. That's why I was trying to explore talking to the webkit
process that is acting behind the scenes.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden