Jim Hunter schrieb:
> I wish you a lot of luck but where you are going to hit the wall is 
> trying to get the file data into or out of the input tag, JavaScript 
> won't let you. The only way to get the file data from the input tag to 
> the server is to do a basic form submit.  This is a security design 
> built into JavaScript. You can try to get around it but in my opinion, 
> after spending weeks on it, it's not possible.
>
> Jim
>
>
> On 11/2/06, *Dietrich Streifert* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Well the goal is to have a single widget which handles everything
>     needed.
>
>     Events are fired like "completed", "timeout", "failure" so the
>     interface is as simple as possible.
>
>     For the upload process itself I'm now trying to subclass
>     qx.io.remote.IframeTransport where everything seems to be ready
>     like form handling etc.
>     I'm adding now a file and an enctype property to the subclass and
>     creating an input tag of type file within the form.
>
>     If this works the rest should be simple.
>
>     Well lets see what happens.
>
>
>     Alex D. schrieb:
>>     Why would you use qooxdoo-widgets for this? I think it's easier
>>     to create a form with DOM-api(createElement, createTextNode,
>>     createAttribute...). But i haven't tried such a thing yet.
>>>     Thank you Alex but it would be sufficient to use the usual file
>>>     selector which pops up on normal upload form handling.
>>>
>>>     My current idea is to create a hidden iframe which includes a
>>>     form which includes an input of type file.
>>>     By inheriting qx.ui.form.TextField (qx.ui.form.FileField) which
>>>     shows the file select button.
>>>
>>>     With an associated valueChange eventhandler I can catch the
>>>     change of the FileField value and set the file field value of
>>>     within the iframe.
>>>
>>>     After that I can trigger the submit method of the iframe form
>>>     and catch the "load" event of the iframe which should indicate
>>>     the upload completion.
>>>
>>>     I just had a look at qx.io.remote.IframeTransport which also
>>>     creates a hidden iframe with form within but I don't know the
>>>     state of
>>>     implementation because the source has allot of TODO marks in it.
>>>
>>>
>>>     Alex D. schrieb:
>>>>     Do you have JVM on your client PCs? If yes then you can use
>>>>     it(not really comfortable but anyway) to read files from hard
>>>>     drive. ;-)
>>>>>     Hi Dietrich,
>>>>>
>>>>>     we did it in an other project, without useing qooxdoo, in the 
>>>>> following 
>>>>>     way. We create a div with style hidden, into the div we create a form 
>>>>>     with the file field. From outside we fill the form with JavaScript 
>>>>> and 
>>>>>
>>>>>     then post the form. For Securityreasons you could only use a 
>>>>>     Fileselector from your browser it is not possible to write one on 
>>>>> your 
>>>>>     own in qooxdoo.
>>>>>
>>>>>     Dirk
>>>>>
>>>>>     Dietrich Streifert schrieb:
>>>>>       
>>>>>>     Hello List,
>>>>>>
>>>>>>     has anybody written code which does a file upload from within a 
>>>>>> qooxdoo 
>>>>>>     application and is willing to share it with the list?
>>>>>>
>>>>>>     I'd like to get an idea on how file uploading could be done.
>>>>>>
>>>>>>
>>>>>>     Opening a native window which has a form which includes an input tag 
>>>>>> of 
>>>>>>     type file is the obvious method but that is not what the user wants.
>>>>>>
>>>>>>     Any help would be great.
>>>>>>
>>>>>>     Best regards...
>>>>>>
>>>>>>       
>>>>>>
>>>>>>         
>>>>>     
>>>>> -------------------------------------------------------------------------
>>>>>     Using Tomcat but need to do more? Need to support web services, 
>>>>> security?
>>>>>     Get stuff done quickly with pre-integrated technology to make your 
>>>>> job easier
>>>>>
>>>>>     Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>>>>> Geronimo
>>>>>
>>>>>     
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
>>>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>>>>>     _______________________________________________
>>>>>     qooxdoo-devel mailing list
>>>>>     [email protected]
>>>>>      <mailto:[email protected]>
>>>>>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>
>>>>>       
>>>>     
>>>> ------------------------------------------------------------------------
>>>>
>>>>     
>>>> -------------------------------------------------------------------------
>>>>     Using Tomcat but need to do more? Need to support web services, 
>>>> security?
>>>>     Get stuff done quickly with pre-integrated technology to make your job 
>>>> easier
>>>>
>>>>     Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>>>> Geronimo
>>>>
>>>>     
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
>>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>>>>     
>>>> ------------------------------------------------------------------------
>>>>
>>>>     _______________________________________________
>>>>     qooxdoo-devel mailing list
>>>>     [email protected]
>>>>      <mailto:[email protected]>
>>>>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>       
>>>
>>>     -- 
>>>     Mit freundlichen Grüßen
>>>     Dietrich Streifert
>>>     Visionet GmbH
>>>       
>>     ------------------------------------------------------------------------
>>
>>     -------------------------------------------------------------------------
>>     Using Tomcat but need to do more? Need to support web services, security?
>>     Get stuff done quickly with pre-integrated technology to make your job 
>> easier
>>
>>     Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>> Geronimo
>>
>>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     qooxdoo-devel mailing list
>>     [email protected]
>>      <mailto:[email protected]>
>>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>       
>
>     -- 
>     Mit freundlichen Grüßen
>     Dietrich Streifert
>     Visionet GmbH
>         
>
>
>     -------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>
>     _______________________________________________
>     qooxdoo-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>     <https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   
hi

im doing since approximately one month a form implementation to qooxdoo! 
i recently fnished a file-upload, which can combine with 
qooxdoo-elements. This means you dont have a Browse-Button or Text-Input 
Field, but a qooxdoo-button. I you wish i can send  you an example.

At the moment i want to add a file upload progress bar to my 
implementation, but im not ready yet.

cya

david


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to