Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
1 vote
0 answers
50 views

Download CSV Using jQuery Ajax

How can I trigger a csv file download from the ajax jQuery method? I don't want to use an href with the full url because I need to fetch the correct csv file depending on what id is selected in a ...
Johan's user avatar
  • 56
0 votes
1 answer
25 views

Waiting animation while download is being prepared and automatic download

Actually a simple task, but I just can't find a suitable solution Data is collected in one form (HTML) After sending, the server needs, among other things, a few seconds to provide the download, a ...
Funny Paul's user avatar
0 votes
0 answers
43 views

WordPress Ajax call can't get binary data, it returns <?php only

Well, I can get Ajax call return binary data such as image without WordPress. But I just can't get it works in WordPress. It returns <?php and nothing else. Before I go to read through WordPress ...
pang-db-builder's user avatar
0 votes
0 answers
27 views

Download anchor of PDF file fetched with ajax in functions.php not working - WordPress

In my page, I'm calling a function located in functions.php that uses AJAX to get the post types I need (it's a sorting function). As a result, I get this response: $response .= '<a class="cs-...
Chere's user avatar
  • 77
1 vote
1 answer
339 views

Bug: Blob Object creates empty PDF file

I was facing an issue where I was recieving a valid PDF from a Java servlet but at the time where I created the Blob object in Javascript it wasn't being correctly created. The data I was recieving ...
Daniel Culebras's user avatar
1 vote
1 answer
356 views

How to download controller-generated PDF, requested by ajax call in Laravel

I am having trouble getting a direct download of a PDF file. Essentially, the user has some inputs and options on the page that they fill out / choose, then this data is sent to the server via an Ajax ...
T5k's user avatar
  • 65
0 votes
0 answers
48 views

How to use <p:blockUI> while downloading a file via <p:commandButton ajax="false">?

Just to preface this question, the application im working on currently is using JSF2.0, PrimeFaces3.3 and Liferay6.1.1. The current implementation of the file download works although its running ...
Asyraf Dayan's user avatar
  • 3,011
0 votes
1 answer
127 views

Improved file download time in Laravel

I am doing a function that compresses a list of images and downloads them. I had a problem where the download took quite a while. How can I improve download speed? My code api.php Route::post('/...
Dinh Luong's user avatar
1 vote
2 answers
504 views

Download file via AJAX request for error handling if file does not exist/or cannot be downloaded

I am trying to use ajax request to do a download for my file. This is my code: const downloadFile = (element) => { $.ajax({ url: element.id, type: 'GET', success: (...
Yasmine Rico's user avatar
0 votes
0 answers
62 views

Ajax content-disposition returns null, while network show correct information

I got a download working, but I am unable to get the content disposition. It keeps returning null, but in the network I can see it is available: enter image description here Then I have the code: ...
FullstackPeanut's user avatar
0 votes
1 answer
285 views

Download created CSV file from custom directory

I create a PHP and ajax codes to create CSV file and download it when click a button. The PHP codes work fine, and for ajax I modify and set js codes according to Handle file download from ajax post ...
Web Design's user avatar
4 votes
0 answers
617 views

Primefaces 11 AJAX fileDownload not working fully

I need a file download that work with ajax=true as I specifically need support for partialSubmit=true, which only works with ajax requests. Since PrimeFaces 10, a fileDownload should be able to work ...
XtremeBaumer's user avatar
  • 6,395
0 votes
1 answer
28 views

Generated File Data Not Shown in Download File through Ajax request asp.net core

Downloaded a File through Ajax Request and here is my code $.ajax({ type: "POST", url: vGenerateUrl, data: { IDs: ids, SupplyType:supplyType, SubType:subType, DocType:...
Prathamesh Pitale's user avatar
0 votes
1 answer
22 views

Error after updating Jquery on jquery.ajax_upload.0.6.js

I just want share my experience. I use this template : jquery.ajax_upload.0.6 to build a button to download file in VB.NET application. I update my jquery and I'd errors on jquery.ajax_upload.0.6 ...
YannickIngenierie's user avatar
0 votes
1 answer
250 views

How do I write inta a file and download the file using Javascript?

A file is getting uploaded to a remote server and I need to download the file to the local machine. Im running a GET call through ajax to get the data. On running the following code - console....
terminatorash2199's user avatar

15 30 50 per page
1
2 3 4 5
20