You shouldn't use AJAX for downloading files for this reason. You could do the following.
Problem: I have no Idea what I'm supposed to do with this data to get it to the user. You shouldn't use AJAX for downloading files for this reason. You could do the following: The user clicks on the download button Using javascript you show some progress image informing him that he will have to wait Using javascript you generate and inject a hidden iframe into the DOM having its src property pointing to the controller action supposed to generate the file Once the iframe is loaded you could hide the progress image.
Thanks for your answer. That's pretty cool actually. The only problem is that I need the file to be opened in a new window.
If the browser downloads the file, it is ok. However, I do not want that the browser will open the PDF in the current window or in the iFrame. – Matthijs Wessels May 18 at 5:28 @Matthijs Wessels, simply set the Content-Disposition header to attachment; filename=test.
Pdf and that won't happen. The user will be prompted to save the file. – Darin Dimitrov May 18 at 5:55 nice thanks.
– Matthijs Wessels May 18 at 6:27.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.