[Seaside] File download confirmation

bobn at rogers.com bobn at rogers.com
Fri Apr 25 14:21:54 UTC 2014

I would like to add a confirmation to a file download. The problem I'm seeing is that my page does not refresh after the file download, so that any confirmation dialog is not cleared. Ideally I'd use an ajax callback to trigger the file download; the callback code does get triggered, but the file is not downloaded. I figure I'm missing something obvious.

File download is using... 
self requestContext respond: [:response | response contentType: ... ]

...so I understand why the rendered dialog does not refresh, given that the response is not the page content.

Using an ajax callback...
	 onClick: ((html jQuery ajax callback: [self downloadMethod]) ... )
...does not do the download, even though the download method is triggered. 
That also makes sense, since the requestContext is the ajax callback, not the page get.
If that did work, I could use the javascript confirm.

So, what this trick? ... I hate not seeing what should be a simple solution :-)

Thanks for any help,
Bob Nemec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140425/f9feab9d/attachment.htm

More information about the seaside mailing list