Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 5315 invoked from network); 30 Aug 2005 07:57:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Aug 2005 07:57:26 -0000 Received: (qmail 35929 invoked by uid 500); 30 Aug 2005 07:57:23 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 35855 invoked by uid 500); 30 Aug 2005 07:57:23 -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 35842 invoked by uid 99); 30 Aug 2005 07:57:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 00:57:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [132.230.150.3] (HELO atlas.informatik.uni-freiburg.de) (132.230.150.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 00:57:38 -0700 Received: from eradior.informatik.uni-freiburg.de ([132.230.152.161]) by atlas.informatik.uni-freiburg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.51) id 1EA0zg-0005K6-Ey for dev@cocoon.apache.org; Tue, 30 Aug 2005 09:57:20 +0200 Message-ID: <4314115F.7060404@guschtel.de> Date: Tue, 30 Aug 2005 09:57:19 +0200 From: Christoph Hermann User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Repost from users list: Cforms Repeater - Cancel delete action via javascript X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, i originally posted this question on the users list some time ago, but nobody did respond. After some discussion on freenode/#cocoon i decided to mail the dev list. So i'm asking you: Is there a way to cancel a repeaters delete-row action in case a certain condition is met? I tried to put a javascript "return false;" in the on-action, but this throws an error. (Invalid return) I think there should be a simple way to prevent the action to be performed, but i did not find anything in the docs. In the docs there is only mentionned that the on-action is performed before the delete-row. What i basically want to do is disable the deleting of rows that are still referenced somewhere. I.e. you have two xml documents which reference each other and you cannot delete a "parent"-row if there are still "children" in another document referencing this element. I'd be very happy if someone of you could help me with this. With kind regards Christoph Hermann