22 Jan 2013 1:00 AM #1
Problem while downloading word document using Iframe in IE.
I have a button in my screen. On clicking that button , I want to pass control to action which will create word document and the user will see download window to download it in local directory. I have done this using Iframe and it is working fine in Mozilla, but is IE all version when I am clicking that button, I am getting 'Unknown Runtime error'. My code is as follows:
//JS file code.
var resultUrl = 'issuerSetupController/generateClientMemo.action';
Ext.getCmp('clientMemo.ice.hidden.label').update('<iframe src = \"' + resultUrl + '\" width=\"100%" height=\"400px"\"></iframe>' || '');
response.setHeader("Content-disposition", "attachment;filename=" + "document.docx");
// InputStream inputStream = new FileInputStream(file);
OutputStream outputStream = response.getOutputStream();
// IOUtils.copy(inputStream, outputStream);
Please help me as I got stuck because of this.
23 Jan 2013 12:44 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I don't see how this relates to Ext JS 3 from what you have provided.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.