W3C home > Mailing lists > Public > www-forms@w3.org > July 2012

Re: load and submit

From: Erik Bruchez <erik@bruchez.org>
Date: Wed, 11 Jul 2012 11:51:34 -0700
Message-ID: <CAAc0PEWpdh+xHT_=mPyfrV24V1r-5jMnDpWbW6f=kFZopO3v8Q@mail.gmail.com>
To: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>
Cc: www-forms@w3.org
> From time to time I find myself wishing I could submit an
> instance to the server and have the result returned by
> the server opened in a new window.  This appears to be
> a kind of cross between a submit and a load -- but the
> only way I can see to achieve this is to pass the instance
> data long as query parameters on a GET request, which
> doesn't work very well for non-trivial instances.
>
> Is there a way to achieve this behavior, or am I wishing
> for the impossible?

Browsers can do that with <form target="">, and our implementation
adds an extension attribute to xforms:submission:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submissions#TOC-Specifying-an-HTML-target-window-or-frame-with-the-xxforms:target-attribute

One issue is that pop-up blockers can interfere with this, at least in
our specific implementation where we have an Ajax request in between
(browsers should be smarterů). This may or may not be an issue with a
100% client-side solution. Maybe Alain can comment on this?

-Erik
Received on Wednesday, 11 July 2012 18:52:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 11 July 2012 18:52:23 GMT