Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 88237 invoked from network); 2 Apr 2004 00:34:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 00:34:45 -0000 Received: (qmail 78966 invoked by uid 500); 2 Apr 2004 00:34:22 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 78695 invoked by uid 500); 2 Apr 2004 00:34:21 -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 78677 invoked from network); 2 Apr 2004 00:34:20 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 2 Apr 2004 00:34:20 -0000 Received: (qmail 9555 invoked by uid 65534); 2 Apr 2004 00:34:27 -0000 Received: from a183069.studnetz.uni-leipzig.de (EHLO gmx.de) (139.18.183.69) by mail.gmx.net (mp002) with SMTP; 02 Apr 2004 02:34:27 +0200 X-Authenticated: #3483660 Message-ID: <406CB517.5010105@gmx.de> Date: Fri, 02 Apr 2004 02:34:31 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: [WOODY] - How to bind a repeater from other widget (or add filled in repeaters from another source ) References: <404CCFA5.9020904@datatrio.com> <406B4E58.2030802@gmx.de> <62B028C8-8377-11D8-8B53-000A95908E0E@wrinkledog.com> <406BF1F1.4090404@datatrio.com> <406CADBF.2020805@gmx.de> <406C5058.7090805@datatrio.com> In-Reply-To: <406C5058.7090805@datatrio.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 01.04.2004 19:24, JD Daniels wrote: >>> //row.description.value = >>> document.getOwnerDocument().getTagName("description"); >> >> >> >> What part of it exactly returns null? With document you are already at >> the document root, no need to call getOwnerDocument(). And you must go >> to first, before selecting description. And what is getTagName()? >> > Sorry.. The full Line is: > org.mozilla.javascript.EvaluatorException: > "file:/usr/tomcat/hosts/components/ROOT/modules/inventory/flow/inventory.js", > line 138: Cannot convert null to an object. Unfortunately those error messages are not very expressive. But let's go on with the below which has no "NPE"s. > getTagName()?? No Idea. found it hopping thru Java Docs in an attempt to > throw something at it that would work. > > I am dom Illiterate :) I'm using http://xulplanet.com/references/elemref/ref_Node.html for DOM questions. Good overview. > row.description.value =document.getFirstChild().getLastChild(); > Results in [ #text ] I didn't expect to be already on a text node. What's the result of document.getFirstChild().getLastChild().nodeValue or document.getFirstChild().nodeName ? Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org