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

Re: Handle XForms Submit whith XmlHttpRequest

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 06 Jul 2006 16:04:38 +0200
Message-ID: <44AD1876.7070403@orbeon.com>
To: www-forms@w3.org
CC: Landry DEFO KUATE <defolandry@yahoo.fr>, Fritz_Schenk@Countrywide.Com

Landry DEFO KUATE wrote:

 > I can't use Xforms because with Xforms, when you click a submit for
 > example, the submission object will built the http request and send
 > it to server. Next, the browser will handle server response and show
 > it in the page (roundtrip).

This is incorrect, as pointed out by other posters.

 > The matter with this is that I have more forms and other information
 > on the page and I just want to refresh the appropriate area that
 > contains the form that was submit.

This is something XForms allows you to do.

 > I am thinking of using a listner on te submission and cancel the
 > submission onsubmit event.
 > Il place, I will user a <xforms:setvalue value="handlerequest(.)"/>
 > that will call a generic JavaScript function. This function have to
 > do the same responsibility the submission will do, but by usin an
 > XmlHttpRequest object. Then, this function will refresh the div that
 > contains Xforms form with return data.

 > I want to know if this solution is smart and realistic and if
 > somebody have deal with this in the past.

I believe you can do all this with pure XForms :-)


Orbeon - XForms Everywhere:
Received on Thursday, 6 July 2006 14:04:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC