cometta
cometta

Reputation: 35679

jquery ajax get download file

$.get(
url: downloadUrl,
function(data) {

//after get the data, how to ask browser pop up to save file?
}
); 

data is content dumped by server side servlet. can be binary

Upvotes: 7

Views: 4782

Answers (1)

Quentin
Quentin

Reputation: 943100

Don't use Ajax for this, just location = downloadUrl;

Upvotes: 8

Related Questions