It's me again...
What would be the simpliest way to send the contents of a stream a file to the client/ set a download link? One way, I thought, would be a link that creates the file and then points to a point of my apache. Is there a better way? Any pointers?
I'll need this for an export-feature of my little WebBookmarks :-)
Thank you, Markus
On Mon, 24 Jun 2002, Markus Fritsche wrote:
It's me again...
What would be the simpliest way to send the contents of a stream a file to the client/ set a download link? One way, I thought, would be a link that creates the file and then points to a point of my apache. Is there a better way? Any pointers?
Markus,
Check out IAResourceComponent; this is meant for "pages" that are not text/html. The example subclass generates an image, but it could just as easily stream a text file.
I just got back from being out of town so I haven't had time to look at your webbookmarks yet, but I'll do so soon...
Cheers, Avi
On Tue, 25 Jun 2002, Markus Fritsche wrote:
Avi Bryant wrote:
The toolbar shouldn't be printed for resource components. If it is, let me know.
My "IADynamicResource subclass: #IAHtmlResource" prints it, using seaside-0.93 ?!
Hmm, ok. I'm not sure when this change occured, but what you need to do is pull "self printToolbar" out of IASession>>viewPage:, and add "session printToolbar" into IAPage>>printContentsTo: just before "context print: '</body>'. I had thought that happened before 0.93, but I guess not.
Is my description clear enough or should I send a change set?
Cheers, Avi
seaside@lists.squeakfoundation.org