Re: load and submit

Erik Bruchez <[email protected]> Wed, 11 Jul 2012 11:51:34 -0700
Newsgroups gmane.comp.web.xforms
Message-ID <CAAc0PEWpdh+xHT_=mPyfrV24V1r-5jMnDpWbW6f=kFZopO3v8Q@mail.gmail.com>
> 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=3D"">, and our implementation
adds an extension attribute to xforms:submission:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-advanced-submission=
s#TOC-Specifying-an-HTML-target-window-or-frame-with-the-xxforms:target-att=
ribute

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=85). This may or may not be an issue with a
100% client-side solution. Maybe Alain can comment on this?

-Erik