cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Adobati" <omar.adob...@gmail.com>
Subject Re: Flowscript and Array
Date Thu, 31 Aug 2006 20:23:59 GMT
I'm not so expert, so... what you suggest to use?
I need to pass via cocoon.sendPage("go-there", myvalues-array-or-hash)...


Omar

On 8/31/06, Tony Collen <tcollen@gmail.com> wrote:
> 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 <omar.adobati@gmail.com> wrote:
> > Tony,
> >
> > So, what's the way I should to use?
> >
> > Omar
> >
> > On 8/31/06, Tony Collen <tcollen@gmail.com> 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 <omar.adobati@gmail.com> 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
>
>


-- 
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


Mime
View raw message