On Wed, Dec 3, 2008 at 3:53 PM, Jean-Baptiste BRIAUD -- Novlog <
[email protected]> wrote:
> Hi,
>
> I'm using io.request.setFormField to pass couple of key/value to the
> backend.
> It work fine for simple value like name of a person.
>
> Now, I have to pass the equivalent of an HTML multiple select, how do
> I use (encode ?) that using the request ?
> Should I use setFormField method ? If yes, what is the convention for
> the key (vId) or the value (vValue) ?
Hi Jean-Baptiste. Would you please take a look at this related bug (
http://bugzilla.qooxdoo.org/show_bug.cgi?id=1602) and confirm that it's
fixed. We'd like to close the bug but it's awaiting your confirmation.
As to your specific question, you can use the static qx.util.Json.stringify
function to encode a javascript object into JSON which may be passed as a
single string value. There are JSON parsers available in numerous
languages, for use on the backend. See http://json.org/ for additional
details.
Cheers,
Derrell
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel