TobyJustus
16 Apr 2012, 12:38 AM
In a formpanel i have a download button
{
xtype: 'button',
text: 'Download CSV',
style: 'margin:18px 0 0 10px',
handler: function () {
console.log('download data');
}
}
i want to download: export.csv when i click on this button. I tried to do it with
window.open('export.csv','download')
this is working in chrome, ff and ie9. But in ie8 it is not working unless you change a setting in the browser. Is there a better way to download a file using buttons?
{
xtype: 'button',
text: 'Download CSV',
style: 'margin:18px 0 0 10px',
handler: function () {
console.log('download data');
}
}
i want to download: export.csv when i click on this button. I tried to do it with
window.open('export.csv','download')
this is working in chrome, ff and ie9. But in ie8 it is not working unless you change a setting in the browser. Is there a better way to download a file using buttons?