I have been looking for this particular scenario now a while. I know, if the file is on server side, then we can directly fetch and open to for the user directly (without asking the user to save it on some location).
Well I am using Datatable in my application with sExtends of Tabletools to get the below tools.
$(document).ready( function () {
$('#example').dataTable( {
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "/swf/copy_csv_xls_pdf.swf"
}
});
});
Now when I click on CSV or Excel button as seen in the second image, it firsts throws a dialog box prompting me to save it, then I will be able to view the content in the sheet. Now what I want is -> Click on the Button Excel or CSV and boom, the excel is open to view directly. Later if the user wants then he can save it manually. Is it possible?