We’re using JSONP (cross-site request) request with JQuery to retrieve data from our server; everything is fine.
But now we need to retrieve an Excel file; any idea / pointer on how to do that (we’re using Firefox).
Thx.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could setup a server side handler on the remote domain which will serve the Excel file and append the
Content-Disposition: attachment; filename=foo.xlsxHTTP header so that the browser opens a Save As dialog. Now all that’s left is provide the user with some link to download the file:No javascript is required.