Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 6096 invoked from network); 14 Dec 2006 17:03:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 17:03:11 -0000 Received: (qmail 50269 invoked by uid 500); 14 Dec 2006 17:03:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 50252 invoked by uid 500); 14 Dec 2006 17:03:05 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 50241 invoked by uid 99); 14 Dec 2006 17:03:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 09:03:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [204.127.200.84] (HELO sccrmhc14.comcast.net) (204.127.200.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 09:02:54 -0800 Received: from [192.168.1.47] (c-69-143-26-154.hsd1.va.comcast.net[69.143.26.154]) by comcast.net (sccrmhc14) with ESMTP id <200612141702320140047cgfe>; Thu, 14 Dec 2006 17:02:32 +0000 Message-ID: <4581841D.5030309@christopherschultz.net> Date: Thu, 14 Dec 2006 12:04:29 -0500 From: Christopher Schultz User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: TC 5.5.15 - Internet Explorer firing multiple form submits? References: <4581815F.2010606@sentrylink.com> In-Reply-To: <4581815F.2010606@sentrylink.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Frank, Frank McLean wrote: > I have a couple of submit buttons similar to the following: > > onclick='mode.value=2;document.forms[0].submit()'/> Your javascript is causing the "multiple submit" behavior. You need to change your onclick handler to this: onclick="mod.value=2; document.forms[0].submit(); return false;" If you don't have the "return false" at the end, then the default action is still performed (which, for a SUBMIT button is to submit the form). So, you have one form submission coming from your javascript trigger, and another that the browser is performing because you didn't tell it not to do so. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFgYQd9CaO5/Lv0PARAnTMAJ9Wyng82bTPmmwxf0X+Pt3wnM5+2QCcDDk4 VhnqR0cEZZI2B1z3girjzdk= =YOwr -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org