[Seaside] Value of a fileUpload element?

Lukas Renggli renggli at gmail.com
Wed Jan 14 20:54:18 UTC 2009


> 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


More information about the seaside mailing list