[Seaside] confused by the iframe

Richard Durr richard.durr at googlemail.com
Mon Feb 15 17:52:22 UTC 2010


Ah. Nice to know a solution for upgrading to Seaside 3.0. I actually
had the problem that my solution did not work in Seaside 3.0, but I
did'nt have the time to fix it then, though. ^^

On Mon, Feb 15, 2010 at 4:09 PM, Nick Ager <nick.ager at gmail.com> wrote:
> Hi Richard,
>
>>
>> In your html fileUpload callback answer the following:
>> ^ WARenderLoop new call: YourComponentForTheIframe withToolFrame: false
>
> I should have mentioned I'm using Seaside 3.0, and couldn't find a
> WARenderLoop>>call:withToolFrame: or similar, so I guess you're using
> Seaside 2.8.
> However your code gave me an idea, which seems to provide a solution. I've
> changed the callback to read:
> html fileUpload
> callback: [:aFile| file := aFile. self renderIframeResponse];
> then renderIframeResponse reads as:
> renderIframeResponse
> self requestContext respond:
> [ :response |
> response
> contentType: WAMimeType textHtml;
> nextPutAll: (WAHtmlCanvas builder
> documentClass: WATagDocument;
> fullDocument: true;
> render: [:html |
> self renderIFrameContentOn: html.
> ])]
>
> all now works as anticipated.
> Thanks
> Nick
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


More information about the seaside mailing list