I'm downloading a file from a servlet with a form submit in Ext, but when I try to handle the success or failure of my submit it just never get fired and my waitMsg goes on forever.
Any help would be appreciated.
var form = Ext.create('Ext.form.Panel',{
standardSubmit: true,
url: '../ObtenerArchivoAdjuntoServlet',
});
form.submit({
waitMsg: 'Descargando...',
params:{
nombreArchivo:nombreArchivo
},
success: function(form, action){ //not getting fired
//do something
},
failure: function(form, action){ // not getting fired
//do something
}
});