I want to get a response when the download starts, I'm submitting a form which is an HTML form post and I get a file as return which already Flush in the controller. so there is no response from the server-side. Is there any way to get a response from the browser side to know the download is started or not?
function GenerateReport() {
debugger;
ChangeButtonPatchView("Report", "buttonPatch", "DisabledGenerateRpt");
$('#Action').val('Report');
$('#btnPrintOrSaveReport').trigger('click');
setInterval(function () {
ChangeButtonPatchView("Report", "buttonPatch", "SCurvePercentageComplete");
},2000);
}
in this code, the submit button is triggered. I want to check the browser response in this function