Hi,
I try to open xls and csv files by javascript statement:
window.location.href="myExcelDoc.xls";
It is open file in IE as a binary code.
I check Tomcat web.xml and added
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>csv</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
Now <a href="myExcelDoc.xls">Excel Doc</a> opens fine - asked to open or save etc.
But javascript still opened as binary code in browser.
How to fix it?
Thank you.
Vadim.
I try to open xls and csv files by javascript statement:
window.location.href="myExcelDoc.xls";
It is open file in IE as a binary code.
I check Tomcat web.xml and added
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>csv</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
Now <a href="myExcelDoc.xls">Excel Doc</a> opens fine - asked to open or save etc.
But javascript still opened as binary code in browser.
How to fix it?
Thank you.
Vadim.