I really don't think it can be done w/o an iframe.

@Fabien - here's the (simple) code:

http://www.dooriented.com/blog/2008/04/

Cristi Manole

On Wed, Apr 23, 2008 at 5:39 PM, Rüdiger Schulz <[EMAIL PROTECTED]>
wrote:

> Hello Michael,
>
> Could you share this fileupload.js? I'd bet it creates some iframe tag via
> DOM manipulation ;-)
>
> greetings,
>
> Rüdiger
>
> 2008/4/23 Michael Mehrle <[EMAIL PROTECTED]>:
>
> > Yeah, that's how it works. There's a fileupload.js that leverages
> > jQuery. When the user presses the upload button it does a binary upload
> > to a page of your choosing - that's where I had to change the existing
> > PHP-integrated lib that I used as a template. I used a Page that was
> > accessible via a mapped URI to parse out the stream and store it to the
> > backend. Then I bounced back a JSON msg, which can contain various
> > status and error notifications. Those can be popped up as JS alerts,
> > which is kind of cool. I even managed to bounce back the image id and
> > the local path, so that I could do some frontend magic. Works just fine
> > - one of the other problems was to make it work with Wicket since the
> > component ids had to match. This was done by injecting the proper ids
> > into the JS lib when loading the enclosing page.
> >
> > A bit of a hack, I know - but it's working, which is all I care about.
> >
> > Michael
> >
> > -----Original Message-----
> > From: Johan Compagner [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 22, 2008 2:29 PM
> > To: users@wicket.apache.org
> > Subject: Re: Problems with FileUploadField
> >
> > really?
> > are you using the XMLHttpRequest  request to do a binary upload with a
> > form
> > post?
> >
> > everywhere on the internet they say that isnt possible
> >
> > johan
> >
> >
> > On Tue, Apr 22, 2008 at 8:05 PM, Michael Mehrle <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I recently implemented an AJAX based file upload field that works just
> > > fine. It's works 'outside of Wicket AJAX' but does leverage an AJAX
> > > fileuploadfield. Let me know if you want to use it, I don't mind
> > sharing
> > > the code. It took a lot of work to make this happen, since the
> > original
> > > jQuery based upload code had to be modified + was a bit buggy to begin
> > > with.
> > >
> > > Cheers,
> > >
> > > Michael
> > >
> > > -----Original Message-----
> > > From: Fabien D. [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, April 22, 2008 7:02 AM
> > > To: users@wicket.apache.org
> > > Subject: Re: Problems with FileUploadField
> > >
> > >
> > > My researches show FileUploadField does not support ajax behavior....
> > >
> > > So there is no wicket input, which permits to the user to browse his
> > > local
> > > disk?
> > >
> > > Thank you in advance.
> > >
> > >
> > > Fabien D. wrote:
> > > >
> > > > Hi, I would like to add a behavior on my FileUploadField
> > > >
> > > > But I can't get back the path of the file, or the file
> > > >
> > > > this.logo = new FileUploadField("inputLogo");
> > > >       logo.setRequired(false);
> > > >       logo.add(new AjaxFormComponentUpdatingBehavior("onchange") {
> > > >               private static final long serialVersionUID = 1L;
> > > >             protected void onUpdate(AjaxRequestTarget target) {
> > > >            ..............................
> > > > }
> > > >
> > > > I have try everything :
> > > >
> > > > FileUpload up = logo.getFileUpload(); -> null
> > > > File file = (File)logo.getModelObject(); -> null
> > > > logo.getModelObjectAsString() -> null
> > > >
> > > > So how can i get the file or just the path and the name file????
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > >
> > http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.
> > >
> > html<http://www.nabble.com/Problems-with-FileUploadField-tp16823823p1682
> > 4291.html<
> http://www.nabble.com/Problems-with-FileUploadField-tp16823823p16824291.html
> >
> > >
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> greetings from Berlin,
>
> Rüdiger Schulz
>
> www.2rue.de
> www.indyphone.de - Coole Handy Logos einfach selber bauen
>

Reply via email to