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