Hi,
Yes, the toUriParameter does not support arrays or objects. The main purpose
of that method is / was to serialize forms which done have such kind of data
in it. But it could be useful for all data types. So we should extend the
method to support such types.
Is you suggestion how to serialize it some kind of standard?
I just tested a HTML Select with multiple input and it seems that its just
adding multiple parameters with the same name.
Regards,
Martin
Krycek wrote:
>
> Hi,
> what is the easiest way to send form data to the server when dealing with
> model objects?
>
> In case of being qx.util.Serializer.toUriParameter(),. shound't it support
> arrays?
>
> I have something like that to serialize:
>
> {
> id: "1",
> name: "my name",
> myArray: [1, 2, 3]
> }
>
> my backend is php and what I want to receive is:
>
> id=1
> name=my name
> myArray[0]=1
> myArray[1]=2
> myArray[2]=3
>
> would be great to be able to serialize something more complex too:
>
> myArray[0][2]
>
> or maps:
>
> myMap["index"]["another"]
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://n2.nabble.com/Easiest-way-to-serialize-model-objects-tp3645573p3646763.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel