I have a link on the website to a php file that generates native excel file on a fly ant outputs it directly to browser via headers for user to to open/save. Since it takes some time for the file to be generated I'd like to use jQuery Ajax to make the call and use some loading animation in the mean while.
The only thing I'm not sure how to do is how to output the file into the browser after Ajax call? Is it even possible?