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

Re: load and submit

From: Alain Couthures <alain.couthures@agencexml.com>
Date: Sun, 15 Jul 2012 19:11:46 +0200
Message-ID: <5002F9D2.3050503@agencexml.com>
To: Erik Bruchez <erik@bruchez.org>
CC: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, 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?
This would be an easy-to-add feature for XSLTForms: as for xf:load, 
XmlHttpRequest calls are used for submissions (HTML form element would 
not allow submitting XML instances...) then Javascript instructions 
could easily open a new window instead of replacing the calling form.

-Alain
Received on Sunday, 15 July 2012 17:13:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 15 July 2012 17:13:02 GMT