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

RE: Handle XForms Submit whith XmlHttpRequest

From: Kugelman, John <jkugelman@progeny.net>
Date: Thu, 6 Jul 2006 10:48:16 -0400
Message-ID: <9A0E40933DE3E548A1B8E32063CE4EE482B446@es3.progeny.net>
To: "Landry DEFO KUATE" <defolandry@yahoo.fr>, <www-forms@w3.org>

Here's a simple demonstration of replace="instance" I just cooked up:

http://www.formfaces.com/faces/Examples/Test%20Pages/replace-instance.html

I tested that in IE 6 and Firefox. Let me know if you have any trouble loading the page.

Cheers,
John


-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On Behalf Of Landry DEFO KUATE
Sent: Thursday, July 06, 2006 10:07 AM
To: www-forms@w3.org
Subject: RE: Handle XForms Submit whith XmlHttpRequest


Can some one point me an example please!

-----Message d'origine-----
De : Erik Bruchez [mailto:ebruchez@gmail.com] De la part de Erik Bruchez
Envoyé : jeudi 6 juillet 2006 14:05
À : www-forms@w3.org
Cc : Landry DEFO KUATE; Fritz_Schenk@Countrywide.Com
Objet : Re: Handle XForms Submit whith XmlHttpRequest

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 :-)

-Erik

-- 
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/


	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
Received on Thursday, 6 July 2006 14:48:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:05 GMT