[Seaside-dev] FW: Deferring file downloads until link is clicked
Tanner, Brian
brian.tanner at hp.com
Thu Oct 16 12:43:53 UTC 2014
Now sent van my registered e-mail adress
_____________________________________________
From: Tanner, Brian
Sent: donderdag 16 oktober 2014 14:33
To: 'seaside-dev at lists.squeakfoundation.org'
Subject: Deferring file downloads until link is clicked
Dear mailing list,
I'm having problems downloading documents using Seaside with Cincom Smalltalk 7.9.1.
I see that a document is downloaded during rendering whilst I wish that to be deferred until the user clicks op the link (anchor). On the Seaside website (documentation, FAQ, How to: entry 14) there is an explanation of how to resolve this problem by using a callback on the anchor:
Is there 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: aMimeType
fileName: aString) ];
with: 'Export'.
This information however seems to be outdated. There is for example no Class method WAResponse>>document:mimeType:filename , there is however an instance method with this name. I understand that I need to access the response in the active Request Context, but how do I do that?
Regards,
Brian Tanner
Information Specialist
ES WW Application Services (APP)
brian.tanner at hp.com<mailto:brian.tanner at hp.com>
T +31 30 700 1306
M +31 6 11706314
PC +31 20 721 1814
Hewlett-Packard Nederland B.V.
Orteliuslaan 1000
3528 BD Utrecht
The Netherlands
[http://www8.hp.com/h10180/images/hp_blue_rgb_72ppi_22px.png]<http://www.hp.com/>
Please print thoughtfully
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20141016/6c46b7df/attachment.htm
More information about the seaside-dev
mailing list