Reputation: 35679
$.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
Reputation: 943100
Don't use Ajax for this, just location = downloadUrl;
location = downloadUrl;
Upvotes: 8