Hi,
I am trying to download an attachment in on a click event. The code after the clicking event is pasted below:
Code:
Ext.Ajax.request({ url: '/DPS_BE/StudyVersionControlServlet?action=downloadVerStudy',
method:'GET',
params: {
stuID : study,
version : version
},
success: function(response){
box.hide();
var link = document.createElement("a");
link.download = studyName+'_V'+version+'.doc';
link.href = '/DPS_BE/temp/workingSOVDir/sov.doc';
link.click();
},
failure: function(response){
box.hide();
Ext.Msg.alert('Server Error');
}
});
Now the doc file is downloading perfectly fine in chrome, but NOT in IE-10. Please let me know the solution ASAP, as it is halting my crucial deliverable.
N.B.: I have tried to set the response type to "text/html" , "application/msword", "text/plain". But no success..