$.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.
the purpose of doing ajax get is need to put some custom header before do get