[Seaside] File for download

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Fri Jul 22 15:19:02 UTC 2011

You could try specifying #target: of the anchor (if it's the anchor that
has your callback), but really I wouldn't worry much about that aspect
of browser behavior given that you'll never have full control of it.


-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Louis
Sent: Friday, July 22, 2011 11:16 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] File for download

Hi Boris,

This works great!  Sorry for not saying so sooner.  Is there a way to
get the download to open in another browser window/tab?  Some browsers
do, some don't.


>Once you have the bytes in hand the following should do the trick, self

>requestContext respond:
>	[:response |
>	response document: ((#[1 2 3] seasideMimeDocument)
>					mimeType: 'application/pdf';
>					fileName: 'report.pdf';
>					yourself)].
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com

seaside mailing list
seaside at lists.squeakfoundation.org

More information about the seaside mailing list