Hi,
regarding file uplaoding, I was looking the code of UploadField and
UploadForm and I think it can be easier than it is now. My ideia is create a
FileField extending TextField, just changing its "type". Then, change
qx.ui.io.remote.Request::setFormField to recieve both: a String or a
IFormElement.
If one of those fields is a FileField than set fileUpload to true and it
would set the transport implementation to qx.io.remote.transport.Iframe.
qx.io.remote.transport.Iframe would check for FileFields and then it'd
include fields textareas (for fields != FileField) or textfield[type:file]
(for FileFields) into the form.
Like so, uploading files or any other fields would expect the same sintax.
example:
var my_string_field = qx.ui.form.TextField();
my_string_form.setValue("my_value2");
var my_file_field = qx.ui.form.FileField();
a.setFormField("my_string", "my_value");
a.setFormField("my_string2", my_string_field);
a.setFormField("my_file", my_file_field);
what do you think?
sorry if it's not clear enough, my english is very poor.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel