[Seaside] Value of a fileUpload element?

Jan van de Sandt jvdsandt at gmail.com
Wed Jan 14 21:22:23 UTC 2009


Yes, this works great. Thanks!

Cheers,
Jan.

On Wed, Jan 14, 2009 at 9:54 PM, Lukas Renggli <renggli at gmail.com> wrote:

> > But for me this is only half the solution. Based on that value I need to
> > update the values of some hidden input fields in the same form. How can I
> > add the ajax update in the same onChange code?
>
> Try something along the following untested code (just wrote it here in
> Gmail):
>
> >             html paragraph: [
> >                 html fileUpload
> >                     name: 'file';
> >                     onChange: (html jQuery ajax
> >                         callback: [ :value | self handleNewFile: value ]
> >                         value: (html jQuery this value);
>                           script: [ :script |
>                               script add: ((s jQuery id: 'form')
>                                     append: [ :h | h hiddenInput
> callback: [ :v | ... ] ]) ]) ]
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090114/3fb58ff5/attachment-0001.htm


More information about the seaside mailing list