Dietrich, thank you for your widget. I implemented this and with some little
changes it works fine for me. Because I'm working with more widgets on a
page I changed the listeners a little bit:
uploadform[i].addEventListener('completed',function(e) {
        this.debug('completed');
        this.getFirstVisibleChild().setValue('');
        var response = this.getIframeTextContent();
        this.debug(response);
});
uploadfield[i].addEventListener('changeValue',function(e){
        if(e.getData()!='') {
          this.getParent().send();
        }
});



Dietrich Streifert wrote:
> 
> The UploadButton widget did not reflect the visual mouse over and 
> pressed states.
> 
> I've attached a new version of the zip archive which does!
> 
> 
> Dietrich Streifert schrieb:
>> 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.
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> 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
>>   
> 
> -- 
> 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
> 
> 
> 
> 
>  
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Experimental-file-upload-implementation-for-qooxdoo-0.6.5-and-0.6.6-tf3354745.html#a9374155
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to