title: The simplest way to download file with existing path from jquery?
body: <p>I went through dozen of pages with question "How to download file from jQuery", but still didn't find the simple solution.</p>
  
  <p>I have my jQuery with ajax inside:</p>
  
  <pre><code>$.ajax({
       url: "/Home/SaveQBMatter",
       type: "POST",
       data: JSON.stringify({ 'Matters': result, 'originalRecords': originalRecords, 'originalHours': originalHours, 'excludedHours': excludedHours, 'totalHours': totalHours }),
       dataType: "json",
       traditional: true,
       contentType: "application/json; charset=utf-8",
       success: function (data) {
             if (data.status == "Success") {
                  var DownloadableFile = data.message;
  
                  //HERE I NEED TO DOWNLOAD FILE
  
                  alert("Success! You will be redirect to the Home Page.");
                  var url = '@Url.Action("Index", "Home")';
                  window.location.href = url;
             } else {
                  alert("Error occurs on the Database level!");
             }
       },
       error: function () {
             alert("An error has occured!!!");
       }
  });
  </code></pre>
  
  <p>Here in <code>data.message</code> I'm getting back from Action <code>SaveQBMatter</code> FULL FILE PATH</p>
  
  <p>What I need is simply let to my user download this file before redirecting. Any help please?</p>
  
  <p>Note: I'm using ASP.NET MVC, if this information is needed</p>