Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 15350 invoked from network); 30 Apr 2007 12:29:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Apr 2007 12:29:23 -0000 Received: (qmail 90855 invoked by uid 500); 30 Apr 2007 12:29:29 -0000 Mailing-List: contact users-fr-help@cocoon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users-fr@cocoon.apache.org Delivered-To: mailing list users-fr@cocoon.apache.org Received: (qmail 90844 invoked by uid 99); 30 Apr 2007 12:29:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2007 05:29:29 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of salvetti.marc@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2007 05:29:22 -0700 Received: by an-out-0708.google.com with SMTP id c31so1250555anc for ; Mon, 30 Apr 2007 05:29:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DQ9ims8o/FQ/+Z/fzZ39XrwmD3lO2kSVASZ6yy3NZs98U1CE0LRCP8TN8tZ1l7rca23iuq2QEwY0AWo/02Cdf5nkFV/a8xNYcZtKpBGPmtzOEZujfgSsLxXJ49s1PyG36Dr+XA+AvkO+Mqiv3eXBu1KGgW4My9tW7HAEHSM9sbY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZVsC2+2xNd+SEJPNfAYzMy+ZpFGBFzyZ1sc5/LAR8+XkaCvUMTMDYLuf+Waf2Nya9P7wciPdY9UKJMqHhqDNoWD9ExfWXuD6JTxg3V6xN196iYYDlWNa9Nfs/Vp942cybY4uNsdOXsA+xACk9RiaDBZ7J/w7FFnsOqmbzHqTcGA= Received: by 10.100.144.11 with SMTP id r11mr3719073and.1177936141153; Mon, 30 Apr 2007 05:29:01 -0700 (PDT) Received: by 10.100.135.3 with HTTP; Mon, 30 Apr 2007 05:29:01 -0700 (PDT) Message-ID: <15786ae80704300529t16cf1c16j9eb4299cd6979fa7@mail.gmail.com> Date: Mon, 30 Apr 2007 19:29:01 +0700 From: "Marc Salvetti" To: users-fr@cocoon.apache.org Subject: Re: Ajax + Formulaire In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_374167_21483764.1177936141060" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_374167_21483764.1177936141060 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Bonjour, il faut avoir des autour des donn=E9es a rafraichir et= il faut envoyer une requete xml post avec cocoon-ajax=3Dtrue j'utilise ces petites fctions qui sont bien pratique function createXHR() { if (window.XMLHttpRequest) return new XMLHttpRequest; else if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); } function sendReq(strReq) { var req =3D createXHR(); if (req) { req.open("POST", strReq, true); // true =3D async req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=3DUTF-8"); req.onreadystatechange =3D function() { if (req.readyState =3D=3D 4) { handleBrowserUpdate(req); } } req.send("cocoon-ajax=3Dtrue"); } } Bonne chance, Marc Le 30/04/07, Julien Flott=E9 a =E9crit : > > Bonjour, > > Je suis etudiant et en stage de fin d'etudes pour la fac. > L'entreprise dans laquelle je suis a son portail web bas=E9 sur Cocoon. > Je cherche un moyen pour rafraichir partiellement ma page qui sont > compos=E9es > de plusieurs panels. > > Pour arriver =E0 utiliser Ajax, j'ai un formulaire dans un panel. > Pour rafraichir correctement le reste, j'utilise un "fd:action" et je > bloque > l'envoi du "submit". Les donn=E9es du formulaire influe sur ce qu'il doit= y > avoir dans ma page. Y'aurait-il une autre methode pour faire correctement > le > rafraichissement partiel de la page en passant par un submit ? > > Dans mon cas, mon formulaire est integr=E9 dans un panel =E0 l'initialisa= tion > gr=E2ce =E0 un pipeline interne qui appelle le flowscript. Puis lors du c= lick > sur le bouton d'action, je passes dans un pipeline qui renvoie un xml de > la > forme : > > .... > > > Cordialement, > Julien Flott=E9. > > _________________________________________________________________ > Gagnez des =E9crans plats avec Live.com http://www.image-addict.fr/ > > > --------------------------------------------------------------------- > Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ > Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org > Autres commandes : mailto:users-fr-help@cocoon.apache.org > > ------=_Part_374167_21483764.1177936141060--