You can use response.flash that will appear in your next page or redirection page so you get best of both world you get your message deliver and you bring your user faster to the next task to do...
If you don't like this approach I think your problem is more about usage of LOAD() and redirect... The result of you thank_you function an other page so depend of you need you will ajax trap or not your page in the same component so the initial function that redirect on thank_you will display in the component no page reload... But I pretty sure that you are try to do your thank_you function in the first place because you are not aware of response.flash() possibility. Hope it helps Richard On Wed, Nov 9, 2011 at 1:17 PM, Wes Hall <[email protected]> wrote: > I'm afraid I'm missing something very basic here. > > When a user clicks a link to download a file, how to start the download > after directing to the thank-you page? I can do either, but have not > figured out how to do both. > > Obviously, this won't work, but the desired behavior is something like > this. > > controller > ======== > def thank_you(): > file = request.args[0] > downloader_function(file) # response in downloader_function terminates > thank_you function > message = 'file downloaded' > return dict(message = message) > > session.flash should work for a short message, but I would like a page. My > attempts at LOAD() have resulted in the download file appearing in the > created div, not downloading. > > Thanks >

