Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 9103 invoked from network); 25 Apr 2006 22:17:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 22:17:07 -0000 Received: (qmail 26465 invoked by uid 500); 25 Apr 2006 22:16:59 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 26413 invoked by uid 500); 25 Apr 2006 22:16:59 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 26402 invoked by uid 99); 25 Apr 2006 22:16:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 15:16:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.9.33.3] (HELO mail0.tt.com.au) (203.9.33.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 15:16:58 -0700 Received: from mail0.tt.com.au (localhost [127.0.0.1]) by localhost.tt.com.au (Postfix) with ESMTP id AE0B0191BD for ; Wed, 26 Apr 2006 08:15:59 +1000 (EST) Received: from imap.tt.com.au (imap.tt.com.au [10.2.0.9]) by mail0.tt.com.au (Postfix) with ESMTP id 9C6E4190FF for ; Wed, 26 Apr 2006 08:15:59 +1000 (EST) Received: from VICTORIA (victoria-1.tt.com.au [10.2.0.101]) by imap.tt.com.au (8.13.4/8.13.4) with SMTP id k3PMHJOZ023132 for ; Wed, 26 Apr 2006 08:17:20 +1000 (EST) From: "Victoria Vitaver" To: Subject: RE: [CForms] decorating onclick handler for submit button? Date: Wed, 26 Apr 2006 08:20:15 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N What you can do is define your own styling element on the submit widget and match for it in forms-sample-styling.xsl. Ensure the match is of a higher priority than the default match. It works well for us, but I am not sure whether this is the _best_ way of doing such things. HTH Vica -----Original Message----- From: Mark Lundquist [mailto:ml@wrinkledog.com] Sent: Saturday, 22 April 2006 9:14 AM To: cocoon-users@apache.org Subject: [CForms] decorating onclick handler for submit button? Hi, this seems like it should be simple, sorry if it's a FAQ :-/... I have a submit widget, which as usual is transformed to Now, suppose we want to attach some typical client-side action as an onclick handler, such as "debouncing" a button against double clicks, or popping up a confirmation dialog. It seems like the best than can be done is to brute-force it, i.e. write my own onclick handler that is CForms-aware (i.e., calls forms_submitForm() to submit the form). But even if I do that, I end up with two onclick attributes in the HTML. At the very least, shouldn't forms-field-styling.xsl not write the onclick attribute if there is already one in the document source? Or am I totally going about this in the wrong way? Thanks, �ml� --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org -- Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org