[Seaside] Uploading an image using AJAX and iframes
richard.durr at googlemail.com
Sat Aug 22 10:17:10 UTC 2009
Works great, thank you!I have to learn so much more, there is still so much
that I haven't fully groked, sigh. ^^
On Fri, Aug 21, 2009 at 9:57 PM, Lukas Renggli <renggli at gmail.com> wrote:
> > This works – but it loads the entire page into the iframe, again. I would
> > upload was successful or not and executes in the context of the original
> > html. I tried to return a response during the setting of my component's
> > image instance-variable but this does not work.
> > Has anybody an Idea?
> You need to start a new render loop (to avoid that the parent page is
> displayed within the frame) and display some component. Try to add the
> following code at the end of the method #image:
> WARenderLoop new
> show: (WAComponent new
> addMessage: 'File successfully uploaded';
> withToolFrame: false
> Replace the expression within brackets with your own component that
> displays the confirmation.
> Lukas Renggli
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside