[Seaside] confused by the iframe
Nick Ager
nick.ager at gmail.com
Mon Feb 15 15:09:28 UTC 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100215/85822ada/attachment.htm
More information about the seaside
mailing list