I have a simple HTML form which sends a simple POST request to a second PHP file:
<form method="POST" action="parse.php">
parse.php generates a file to download and sends it to the output buffer, with the headers
header("Cache-Control: private");
header("Content-Type: application/stream");
header("Content-Disposition: attachment; filename=test.html");
Can I detect a finished/started download from the form page without using an asynchronous request? Of course I can find out when the form is submitted by onSubmit
, but is there a jQuery event fired when the download starts or is finished?