Return automatic download JQuery Ajax Call
Posted
by krio
on Stack Overflow
See other posts from Stack Overflow
or by krio
Published on 2010-03-20T00:12:56Z
Indexed on
2010/03/20
0:21 UTC
Read the original article
Hit count: 752
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!
© Stack Overflow or respective owner