If you are using an IFrame then it is not going to work since at the root
you are using the built in file upload facility of the browser and it's the
browser that has the problem. As soon as the browser starts to initiate a
connection to the server it aborts, never actually reaching the server. When
it aborts you get a "can not load page" error or something like that. So it
sounds like your control will have the same problem . And if you tried to
solve it like I am trying to, that being to use a HTTP window for that
upload and the rest of the app is HTTPS, then you can't communicate between
the windows because the browser won't allow cross site scripting (it thinks
it's cross site because the URL's are different). All attempts to
communicate are simply dropped. All I had was a line of code "
window.opener.location.reload()" and it fails if the opener window is HTTPS
and the pop up window is HTTP. But it works fine if they are both HTTP.
Thanks for the info. If I get some time I'll test it out 'just to make sure'
it fails. I would love it if it worked but I'm not going to hold my breath.
Thanks,
Jim
On Dec 14, 2007 12:26 AM, Dietrich Streifert <[EMAIL PROTECTED]>
wrote:
> Sorry but have not tested it under SSL at all.
>
> The widget creates a hidden iframe which is used as a target for the
> upload form (by means of the element form attribute target). The current
> document is not blocked by the upload process and is able the receive a
> "loaded" event from the hidden iframe if the upload terminated. This is
> translated to a "completed" event and fired by the widget.
>
> If this scenario is problematic under IE6 and SSL then it will not work.
>
> So please give it a try (a simple backend is included) from the
> sourceforge repository qooxdoo-contrib/trunk/qooxdoo-contrib/UploadWidget/
> and let us know if it works for you.
>
> Regards.
>
>
> Jim Hunter schrieb:
>
> So how is your file upload component working, now that you have had it
> working for a year+? What I am mostly concerned about is if it works on IE6
> with SSL? A normal HTM form on IE6 using SSL does not work. Have you tested
> it under this scenario?
>
> Thanks,
> Jim
>
> On Nov 6, 2006 3:20 AM, David Gerlich <[EMAIL PROTECTED]> wrote:
>
> > 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
> >
>
> ------------------------------
>
> -------------------------------------------------------------------------SF.Net
> email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open
> Source.http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>
> ------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing [EMAIL
> PROTECTED]://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
>
>
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel