Return automatic download JQuery Ajax Call
- by krio
I use the Ajax JQuery command to call a PHP script that generates a CSV file and returns a link to that file for the user to download.
I would like to make this more user friendly by automatically starting the download so the user sees the browsers "Save or Open" window instead of having to click the download link.
I'm guessing I need to somehow change the headers in the Ajax success callback function??
I'm not really sure what I should be titling my searches or even if this is possible.
Thanks!