There might be a possible workaround. Detecting the File Download Dialog In the Browser
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.0.0/resources/css/ext-all.css" />
<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/adapter/ext/ext-base.js" />
<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.0/ext-all.js" />
Javascript
Ext.onReady(function(){
Ext.get('submit').on('click', function(e){
Ext.MessageBox.show({
title: 'Saving',
msg: 'Please Wait...',
buttons: Ext.Msg.OK,
progressText: 'Saving the file...',
width:350,
wait:true,
waitConfig: {duration:2000,interval:200,increment:20},
icon:'Ext.MessageBox.INFO', //custom class in msg-box.html
animEl: 'Submit'
});
setTimeout(function(){
Ext.MessageBox.hide();
Ext.example.msg('Done', 'The file download starts');
}, 8000);
});
});
CSS
/*message box */
.messagebox{position:relative;width:auto;margin-left:30px;border:1px solid #c93;background:#ffc;padding:3px;font-weight:normal;color:#0000FF; font-stretch:condensed; font-size:xx-small;}
.messageboxok{position:relative;width:auto;margin-left:30px;border:1px solid #349534;background:#C9FFCA;padding:3px;font-weight:bold;color:#008000; font-stretch:condensed; font-size:xx-small;}
.messageboxerror{position:relative;width:auto;margin-left:30px;border:1px solid #CC0000;background:#F7CBCA;padding:3px;font-weight:bold;color:#CC0000; font-stretch:condensed; font-size:xx-small;}
You can get to know more about EXTJS.