[Seaside] Value of a fileUpload element?
renggli at gmail.com
Wed Jan 14 16:39:56 UTC 2009
> Currently the fileUpload code looks like this:
> html paragraph: [
> html fileUpload
> id: (uploadId := html nextId);
> name: 'file';
> onChange: ((html jQuery id: 'pid') load
> addParameter: 'dummy' -> ((html jQuery id: uploadId)
> html: [ :h | self hanldeNewFile: h. h text: 'Haai'
file and submit it through an AJAX request, due to security
to make a traditional submit without having a full refresh of the
complete page. Other sites use a Flash or Java applet. Have a look at
the JQuery Plugins
there are quite a few providing different solutions to this problem.
> Can anobody tell me how I can read the parameter value from the callback
#addParameter: is a low level function. It modifies the URL.
Use #callback:value: instead, this is the high level interface. It
expects a block that will be evaluated with the evaluation of the
this method to see some examples.
More information about the seaside