Serial wiro sableng pdf2/13/2023 ![]() ![]() I cannot figure out why are you making an ajax request to open the PDF file as a simple anchorwould do the trick. Jquery Download Zip File Ajax Responseįor me one problem is that you are specifying json as the content type and that's why you get plain text of the 'binary' content of the PDF document as result. Kindly pardon me if I am being naive here. Also, can you tell me how will one handle 'on success' and 'on error' call back from server response when the solution works. ![]() It does not make a call to the URL provided neither does it throw an error. Now I do not know how to proceed.I tried the solution provided by you. After making an AJAX(POST) request I get a success data. I get a response from server like following:Content-Disposition:attachment filename=Agency1.zipContent-Type: application/octet-streamDate: 2016 May 5 19:41:32+4m 53sServer: Apache-Coyote/1.1Transfer-Encoding: chunkedNow the task is to download this response(a.zip file) on User's local system without user being redirected to an URL or a prompt asking him/her to click a button to download the this zip file. I have been searching for the similar answer for a while. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |