Hi Jean-Baptiste,
Jean-Baptiste BRIAUD -- Novlog wrote:
> 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) ?
When using the "setFormField" method the iframe transport implementation
is used automatically. The several form fields are added as "TextArea"
elements into the form of the iframe and send along with the data (also
a "TextArea" element) using the native "submit" method of the form.
The data is of the form fields are set as text of the TextArea so you
are free to choose your own convention. You only have to make sure your
server understands it ;-)
If you do not want to use form fields you can also use a map to set the
data and send it as JSON (just a quick guess, correct me if I'm wrong)
--snip--
{
"multiSelect": [ "value1", "value2", "value3" ]
}
--snip--
Just a quick shot, but maybe it's working out for you.
cheers,
Alex
------------------------------------------------------------------------------
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