cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gertjan Assies <>
Subject Re: get an array from cocoon request
Date Thu, 17 Mar 2005 09:24:39 GMT
I dont think the brackets should be in the name of the input element
the request object takes the input elements with the same names and 
returns those as an array with the getParameter


<input type="checkbox" name="groups" value="1"/> group 1


Vlad Golodov wrote:

>was trying for a while to get an array from cocoon request in a JS flow. I
>don't use CForms.
>Such code is submitted:
><input type="checkbox" name="groups[]" value="1"/> group 1
><input type="checkbox" name="groups[]" value="2"/> Group 2
><input type="checkbox" name="groups[]" value="3"/> Group 3
>In JS I was trying to get it in ways:
>var groups = cocoon.request["groups"];
>var groups = cocoon.request.groups;
>var groups = cocoon.request.getParameter("groups");
>Any ideas what could be wrong?
>Thanks in advance,
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message