W3C home > Mailing lists > Public > public-xformsusers@w3.org > May 2018

Re: Embedded XForms

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Tue, 22 May 2018 10:14:06 -0700
Message-ID: <CAAc0PEXsVQHGnY5h3jmafQYghBrgCOP_rqbiZGj4HUE+zbOw=w@mail.gmail.com>
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: XForms <public-xformsusers@w3.org>
Some kind of embedding API would make sense. I don't have experience with
client-side embedding but an outline could look like this:

You would point to an element and say that this is where your form must be
embedded, provide a reference to the XForms (inline or external), provide
initial data if needed, and tell your API to initialize your form. You
would provide a way for the API to call you back (callback, promise/future,
event) for the result of a submission.

On the Forms side you could possibly interface with the embedding
application via a submission, but you could possibly also use events.


On Mon, May 21, 2018 at 7:37 AM Steven Pemberton <steven.pemberton@cwi.nl>

> Hi gang,
> This is a sort of day-dream email.
> Recently I have had a number of use-cases that included embedding forms
> within forms (the biggest example of course being the test suite).
> My current method of doing this is to use an iframe; easy to do but with
> a
> hurdle: it is hard to communicate between the parent and child forms. The
> only way, it seems to me, is via a submit to a shared resource; not ideal.
> Has anyone tried such things already?
> It seems to me that the most XForms-like approach would be to
> pre-populate
> a child-form's instance in some way, and to return values using some form
> of submit to the parent.
> Any experience?
> Steven
Received on Tuesday, 22 May 2018 17:14:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:49 UTC