Hello List! I created a file upload widget built of three classes
UploadForm: creates a form tag of and a hidden iframe which is the target for the form submission UploadButton: highly inspired from David Gerlich which creates a qx.ui.form.button which overlays an input tag of type file and allows a file selection button which is a normal qooxdoo button. UploadFile: combines a readonly textfield which holds the selected filepath and a uploadbutton in a horizontal layout widget.
UploadForm: fires a sending and completed event while UploadFile fires a changeValue event on file selection. There is a setParameter method which creates hidden input tags as childs of the form tag.
I'm using this for a single file upload manager who automatically starts uploading after file selection. This is done by attaching an eventlistener of type changeValue to UploadFile which then calls UploadForm.send().
The three classes and a testfile is attached to this mail.Please copy all the files to the frontend/application/sample/source/html/test directory.
You have to provide the url to your upload cgi script in the testfile FileUpload_1.html
One known Problem is that the form tag which is created by UploadForm is not well stylable so there are some browser independant height and top position placement problems.
I've attached a zip archive to this mail which contains the files above. The file extension is renamed to zi_ to avoid file filtering.
-- Mit freundlichen Grüßen Dietrich Streifert -- Visionet GmbH Firmensitz: Am Weichselgarten 7, 91058 Erlangen Registergericht: Handelsregister Fürth, HRB 6573 Geschäftsführer: Stefan Lindner
FileUpload-qooxdoo-0.6.5.zi_
Description: Binary data
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
