Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 51429 invoked from network); 15 May 2008 08:40:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 08:40:38 -0000 Received: (qmail 33881 invoked by uid 500); 15 May 2008 08:40:40 -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 33870 invoked by uid 99); 15 May 2008 08:40:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 01:40:40 -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 (athena.apache.org: domain of salvetti.marc@gmail.com designates 209.85.142.190 as permitted sender) Received: from [209.85.142.190] (HELO ti-out-0910.google.com) (209.85.142.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 08:39:54 +0000 Received: by ti-out-0910.google.com with SMTP id j3so184755tid.8 for ; Thu, 15 May 2008 01:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=aPv8ncAKj7KFO4LRgEuZgXtvne8qxcW9w1eBAh5D44o=; b=ODH+4lt99AN/KUpaNMaek+WL/yoTeVWi2Eynk5oZn2ZZp4Jp/lhPm9v9nkdsczw9KMD68S++NYbE1MTu6k7lDSFo5lxDkulCbm1Z357wfYan6bvNg0Y0byYpbFHCRGh+Ve5d7m7Ih5/1BiMyi0CxfYdFvUnJttXAFmKXBW/2c3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BArHisTIkS9OWDVdjiyq1PKuvXcGDE1C6MsBR3qB/lXOU7Ijsdm2JiU0zqYqgKBBIAV/ehc+Pl2AtY1UPYujzfkeMl7D/ENQLTNUX0g34PeYYZ95px1yCWDk3n74wJ4EZp43wGz+aHu07fYD4BOYPhrHH9fM4f0EccztGhJXdy8= Received: by 10.110.63.6 with SMTP id l6mr277302tia.4.1210840808142; Thu, 15 May 2008 01:40:08 -0700 (PDT) Received: by 10.110.84.4 with HTTP; Thu, 15 May 2008 01:40:07 -0700 (PDT) Message-ID: <15786ae80805150140n64152fa6y12e9ab24db0279a2@mail.gmail.com> Date: Thu, 15 May 2008 15:40:07 +0700 From: "Marc Salvetti" To: users-fr@cocoon.apache.org Subject: Re: Validation de formulaire Ajax In-Reply-To: <1210839222.482bf0b6b6314@imp.free.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9567_32042089.1210840808105" References: <1210839222.482bf0b6b6314@imp.free.fr> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_9567_32042089.1210840808105 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ca n'est probablement pas le probleme mais il me semble que le submitonchange=3D"true" n'est pas necessaire pour les input de type submit, c'est plus pour les listes de selection ou les champs texte. Pour ton probleme, je pense qu'il faut passer au debugger javascript pour arriver a voir ce qui se passe. Il y a une extention firefox venkmark qui est pas mal pour =E7a Marc 2008/5/15 : > > > > Si mon souvenir est bon, normalement dans le html tu devrais voir sur t= es > > actions ajax qqchose du genre onclick=3D"submit_form(this)" (ajout=E9 > > automatiquement par le block forms sur les widgets) qui va envoyer une > > requete xmlhttprequest, laquelle doit etre ensuite traitee au niveau de > la > > sitemap de facon a renvoyer uniquement les elements a mettre a jour (le= s > > bu:replace) > > Oui. > > > > > en gros, dans ton pipe final il faut qq chose comme > > > > ... > > > > ... > > > > > > > > > > > > > > > > > > C'est ce qui figure. Le transformer browser-update envoie bien les > dans ma > configuration pr=E9c=E9dente avec le pipe > > > > > > > il faut aussi preciser au niveau des widgets qu'ils doivent envoyer le > form > > sur le onchange ce qui doit creer les onclick=3Dform_submit : > > > > > > > > > > > > Bien vu. Je viens de le faire et en HTML, je me retrouve donc avec des > input de > ce genre : > > class=3D"forms action active" onchange=3D"forms_submitForm(this)"/> > > H=E9las, les actions Ajax d=E9clenchent toujours des POST de ce type : > > http://serveur/appli/5Bobject%20HTMLInputElement%5D > > Et donc n'appellent pas l'action du formulaire. > Je ne vois pas pourquoi.... > > Que peut-il se passer ? > > Andr=E9 Davignon > > > > > > --------------------------------------------------------------------- > 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_9567_32042089.1210840808105--