Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 7195 invoked from network); 26 Nov 2004 12:47:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Nov 2004 12:47:43 -0000 Received: (qmail 71947 invoked by uid 500); 26 Nov 2004 12:47:29 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71908 invoked by uid 500); 26 Nov 2004 12:47:28 -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 71891 invoked by uid 99); 26 Nov 2004 12:47:28 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from wabe.csir.co.za (HELO wabe.csir.co.za) (146.64.10.166) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 26 Nov 2004 04:47:26 -0800 Received: from cs-emo.csir.co.za (cs-emo.csir.co.za [146.64.10.40]) by wabe.csir.co.za (8.12.5/8.12.5) with ESMTP id iAQCkABl010558 for ; Fri, 26 Nov 2004 14:46:10 +0200 Received: from GW-EMO-MTA by cs-emo.csir.co.za with Novell_GroupWise; Fri, 26 Nov 2004 14:46:10 +0200 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.2 Date: Fri, 26 Nov 2004 14:45:56 +0200 From: "Derek Hohls" To: Subject: Manipulating the DOM in flowscript Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CSIR-MailScanner-Information: Please contact sys-admin at csir dot co dot za for more information X-CSIR-MailScanner: Found to be clean X-MailScanner-From: dhohls@csir.co.za X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Simple question; I need to extract/change data coming from a Cform after it has been updated, but before it is saved to file. So, typically, it looks like this: var document = loadDocument(documentID); form.load(document); form.showForm("mypipe"); form.save(document); Now a call like: var keyNode = document.firstChild; is valid, but a call like: var keyNode = document.firstChild.firstChild; if (keyNode != null) { document.insertBefore(keyNode,keyNode); } gives an error for the insert operation. org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist. (and simlar for other types of chnage operations, in fact) So, how does one actually manipulate the document being returned from the form? Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org