Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 88413 invoked from network); 7 Jul 2005 17:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2005 17:55:59 -0000 Received: (qmail 74163 invoked by uid 500); 7 Jul 2005 17:55:55 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 74095 invoked by uid 500); 7 Jul 2005 17:55:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 74082 invoked by uid 99); 7 Jul 2005 17:55:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 10:55:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dan.ochs@gmail.com designates 64.233.184.201 as permitted sender) Received: from [64.233.184.201] (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 10:55:52 -0700 Received: by wproxy.gmail.com with SMTP id 58so273668wri for ; Thu, 07 Jul 2005 10:55:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V6NNnaiDb2QSRqCF11qA8h7lgHazkkw+E5LV37QtFx0VFX+bRktbSYyxrBRRYcd9437UTvMMS6Z9sUzx9VE/WKgPrtPXFjTVurd8k1Q96ApqvJdPKVUnE4VU/vkFs+li0shu/5CDfaq0p3y9PpODwhi14ICG9SYB1pkwoAHtFn4= Received: by 10.54.34.51 with SMTP id h51mr710984wrh; Thu, 07 Jul 2005 07:03:45 -0700 (PDT) Received: by 10.54.28.33 with HTTP; Thu, 7 Jul 2005 07:03:45 -0700 (PDT) Message-ID: <5367f90d0507070703304d8b43@mail.gmail.com> Date: Thu, 7 Jul 2005 10:03:45 -0400 From: Dan Ochs Reply-To: Dan Ochs To: dev@cocoon.apache.org Subject: how to add a Select All to a cocoon forms table? In-Reply-To: <5367f90d050705125765e33091@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5367f90d050705125765e33091@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi everyone, I sent this to the users list first and got no reply, so I'm trying here. I am new to cocoon forms and am trying to figure out the best way to add a select all/none link into a multivaluefield element. So far I have tried to detect the checkbox click with a fd:on-value-changed element in the fd:field element, but that doesn't seem to be working. Does anyone know the best way to implement this? I have it working if I just put the link and javascript directly in the form template since I know how the form elements will be named, but I'm assuming there is a better or more proper way to do this. The field definition code I have so far is below, the on-value-changed is not working as far as I can see... Another way I can ask these same concepts more generically is: In the cocoon forms examples, the Various (Actions) example, how would a Select None/All link be added to the table column with the title of Select. (and as a separate question, how would I get the row background colors to alternate?) any help is appreciated! thanks, dan alert('gothere'); Label 1 Label 2 Label 3