file upload through javascript

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

file upload through javascript

Andrius Paulavicius
Hi,
Is there a way to upload a file without reloading the page? Using
triggerForm: just gets the string in file input field and not the
contents of the file itself.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload through javascript

Patrick Collison
On 10/09/2007, Andrius Paulavicius <[hidden email]> wrote:
> Hi,
> Is there a way to upload a file without reloading the page? Using
> triggerForm: just gets the string in file input field and not the
> contents of the file itself.

You need to do something kinds hacky -- use a hidden iframe, and set
the target of the form to the name of the iframe. This causes only the
iframe to be refreshed.

> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: file upload through javascript

Patrick Collison
On 10/09/2007, Patrick Collison <[hidden email]> wrote:
> On 10/09/2007, Andrius Paulavicius <[hidden email]> wrote:
> > Hi,
> > Is there a way to upload a file without reloading the page? Using
> > triggerForm: just gets the string in file input field and not the
> > contents of the file itself.
>
> You need to do something kinds

s/kinds/kinda

> hacky -- use a hidden iframe, and set
> the target of the form to the name of the iframe. This causes only the
> iframe to be refreshed.
>
> > _______________________________________________
> > Seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside