<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial" size="2"><span style="font-size:11pt;">
<div><b>Now sent van my registered e-mail adress</b></div>
<div><font face="Times New Roman" color="#1F497D"> </font></div>
<div><font face="Tahoma" size="2"><span style="font-size:10pt;">_____________________________________________<br>
<b>From:</b> Tanner, Brian <br>
<b>Sent:</b> donderdag 16 oktober 2014 14:33<br>
<b>To:</b> 'seaside-dev@lists.squeakfoundation.org'<br>
<b>Subject:</b> Deferring file downloads until link is clicked</span></font></div>
<div><font face="Times New Roman"> </font></div>
<div><font face="Times New Roman"> </font></div>
<div><font face="Calibri">Dear mailing list,</font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri">I’m having problems downloading documents using Seaside with Cincom Smalltalk 7.9.1.</font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri">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:</font></div>
<div><font face="Calibri"> </font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font face="Times New Roman" size="6"><span style="font-size:24pt;"><b>Is there a convenient way to make the document be created after the link is clicked?</b></span></font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font face="Times New Roman" size="3"><span style="font-size:12pt;">Yes, this is a common problem. One solution is to create an anchor and redirect:</span></font></div>
<div><font face="Courier New" size="2"><span style="font-size:10pt;">html anchor<br>
callback: [ <br>
self session returnResponse: (WAResponse <br>
document: anObject <br>
mimeType: aMimeType <br>
fileName: aString) ];<br>
with: 'Export'.</span></font></div>
<div><font face="Times New Roman"> </font></div>
<div><font face="Calibri">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?</font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri">Regards, </font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri"> </font></div>
<div><b>Brian Tanner<br>
</b><font color="#717172">Information Specialist<br>
ES WW Application Services (APP)<br>
<br>
</font><a href="mailto:brian.tanner@hp.com"><font color="#717172">brian.tanner@hp.com</font></a><br>
<font color="#717172">T +31 30 700 1306<br>
M +31 6 11706314</font></div>
<div><font color="#717172">PC +31 20 721 1814</font></div>
<div><font color="#717172"><br>
Hewlett-Packard Nederland B.V.<br>
Orteliuslaan 1000<br>
3528 BD Utrecht<br>
The Netherlands<br>
<br>
<a href="http://www.hp.com/"><img src="http://www8.hp.com/h10180/images/hp_blue_rgb_72ppi_22px.png"></a><br>
<br>
Please print thoughtfully</font></div>
<div><font face="Times New Roman"> </font></div>
<div><font face="Times New Roman"> </font></div>
<div><font face="Times New Roman"> </font></div>
</span></font>
</body>
</html>