Good day. The situation is this: There is a server. It has a link by clicking on which content is generated (DJVU is distilled into TIFF) and a TIFF file is issued. The generation takes a long time. Up to a minute (all this time in the browser is written "Waiting% host%"). Then the "save as" window pops up and the finished file is downloaded. Question: Is it possible to generate an informational message at the time of generation (from a click to the "save as" window) (for example, to twist the GIFC from the beginning, and remove it from the window)? I would like, if possible, through jQuery AJAX. But I create an AJAX request, send it, return an answer, success is triggered, but “save as” does not occur. Can I somehow explain to him that it would be nice to save all this? I hope clearly explained. Thanks for the answers and for participating.
UPD From the server is a picture TIFF. But she comes in a minute. This minute must be caught. If you apply this code
$.post(URL, PARAMS, function(data) { alert(data.length); });
Then by request you can enable the GIF, close it by success, but how to make its incoming data save to a file? Alert falls out and that's it. Infu must somehow continue to save. If you use the old way of sending via FORM, then the URL is changed to the file and I don’t see how to catch the appearance of "save as".