Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    possible duplicate of How to download a file on clicking the name of file using PHP? Commented Dec 28, 2010 at 10:29
  • 1
    I marked it as a duplicate despite the platform difference, because as far as I can see the solution is the same (You can't and don't need to do this through Ajax). Commented Dec 28, 2010 at 10:30
  • 2
    so,without ajax,just use the window.location="download.action?para1=value1...."? Commented Dec 28, 2010 at 10:32
  • none of the answer is good and easy to read, all of them require a freaking hard tweak. 12 years of frontend engineering and still isnt a builtin function for this matter is amazing Commented Oct 24, 2023 at 10:17