[Seaside] MIME documents

Brian Murphy-Dye brian.murphydye at mac.com
Tue Feb 27 15:59:43 UTC 2007


Hadn't heard of #returnResponse: before, but your solution is exactly  
what I needed. Thanks much, Brian.


On Feb 26, 2007, at 11:22 PM, Lukas Renggli wrote:

>> My problem is that the MIME document is created at render time, but
>> the data I want sent is dependent upon the fields on the form. Anyone
>> know of a convenient way to make the document be created after the
>> link is clicked?
>
> Yes, this is a common problem. One solution is to create an anchor  
> and redirect:
>
> html anchor
>    callback: [ self session returnResponse: (WAResponse document:
> anObject mimeType: mimeString fileName: fileString) ];
>    with: 'Export'
>
> Cheers,
> Lukas
>
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the Seaside mailing list