Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 58210 invoked from network); 11 Feb 2005 18:04:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Feb 2005 18:04:02 -0000 Received: (qmail 95341 invoked by uid 500); 11 Feb 2005 18:03:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 95300 invoked by uid 500); 11 Feb 2005 18:03:56 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 95287 invoked by uid 99); 11 Feb 2005 18:03:56 -0000 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from pm-mx5.mgn.net (HELO pm-mx5.mx.noos.fr) (195.46.220.209) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Feb 2005 10:03:55 -0800 Received: from [192.168.2.2] (d066.dhcp212-198-104.noos.fr [212.198.104.66]) by pm-mx5.mx.noos.fr (Postfix) with ESMTP id 6A85727192 for ; Fri, 11 Feb 2005 19:03:50 +0100 (MET) Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: quoted-printable Message-Id: Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed To: From: Jean-Roch SCHMITT Subject: Trouble with form buttons having id="submit" Date: Fri, 11 Feb 2005 19:03:49 +0100 X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N After several hours lost at reviewing my form definition code, I found =20= that most Cocoon samples actually define validation buttons id as =20 "submit". Hence, it seems to be a common source =E0 troubles. In my case, a =20 Javascript message "form.submit() is not a function" was logged into =20 the console. Here is a link : =20 http://www.talkaboutprogramming.com/group/comp.lang.javascript/=20 messages/384839.html I am not an expert of those topics, but if I would dare an advice : =20 rename these buttons, and you jump to the next bug of yours, as I will =20= now do with mines :-) Unless some of our most respected gurus have a =20 more subtle solution. I hope this helps some of this list fellows. Best regards, Jean-Roch SCHMITT --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org