Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 85872 invoked from network); 31 Aug 2006 20:12:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 20:12:26 -0000 Received: (qmail 1712 invoked by uid 500); 31 Aug 2006 20:12:22 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 1656 invoked by uid 500); 31 Aug 2006 20:12:22 -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 1645 invoked by uid 99); 31 Aug 2006 20:12:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 13:12:22 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tcollen@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 13:12:21 -0700 Received: by py-out-1112.google.com with SMTP id c59so937927pyc for ; Thu, 31 Aug 2006 13:12:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hJq6Gv+QilJ9fTMgoA60N68d6EXbtCvnvjwg/hyiK2rDc9PDkHc3zhUmJylmQY8YKnMae+HyCbO2SnAi1evBNOwd0AACxIKO1lAjmlsFb8JItx54waRojsFQ5eNawShAe1PI8mYj19JswW/7M4/aRZLW71zPc3yeqrkLGJG+k84= Received: by 10.35.128.1 with SMTP id f1mr1355403pyn; Thu, 31 Aug 2006 13:02:01 -0700 (PDT) Received: by 10.35.122.8 with HTTP; Thu, 31 Aug 2006 13:02:00 -0700 (PDT) Message-ID: <63ee00ba0608311302u3ca0bea0u6a27c01ab9171e24@mail.gmail.com> Date: Thu, 31 Aug 2006 15:02:00 -0500 From: "Tony Collen" To: users@cocoon.apache.org Subject: Re: Flowscript and Array In-Reply-To: <1f0f45f20608311257t4ad098cga69a90f9be1867f2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1f0f45f20608310810t63d04224j6f8c0371059ffb26@mail.gmail.com> <63ee00ba0608310842o610f5c01s3e7c592a4d80d5ec@mail.gmail.com> <1f0f45f20608311257t4ad098cga69a90f9be1867f2@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It depends. Do you really want an array or hashes, or just a single hash with separate keys? Tony On 8/31/06, Omar Adobati wrote: > Tony, > > So, what's the way I should to use? > > Omar > > On 8/31/06, Tony Collen wrote: > > It looks like you are confusing Arrays with Hashes, since you're > > creating a new Array but treating it like a hash in your code, > > particularly the second line. > > > > Regards, > > > > Tony > > > > > > On 8/31/06, Omar Adobati wrote: > > > Good Morning, > > > > > > I'm trying to fill an array with push() but cocoon tells me that push > > > is not a function. > > > this is a snippet of code: > > > > > > var a = new Array(); > > > a{"prop1" : value1, "prop2" : value 2} > > > // I execute some code using the data in a > > > // that will return back one other value > > > var vale3 = somefunction(a) > > > a.push({"param3" : value3}) > > > > > > but doesn't work :( > > > > > > any mistake? any suggestions? > > > > > > > > > -- > > > Dr. Omar Adobati > > > omar.adobati@gmail.com > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > > For additional commands, e-mail: users-help@cocoon.apache.org > > > > > > > > > > > > -- > > Tony Collen > > weblog: http://weblog.halogenlabs.com/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: users-help@cocoon.apache.org > > > > > > > -- > Dr. Omar Adobati > omar.adobati@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > -- Tony Collen weblog: http://weblog.halogenlabs.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org