hi tar file in response text ext ajax need convert file , download. please let me know way.
ext.ajax.request({ url : 'download.do', method:'post', async:false, usedefaultxhrheader: false, cors: true, params : configrequest.parameters, scope : this, success : configrequest.success?configrequest.success:function(response){ var res = ext.decode(response.responsetext); if(res.result && res.result=='error'){ this.ajaxerrordisplay(res.err); } }, failure : configrequest.failure?configrequest.failure:function(msg){}});
you can create hidden form , submit try code.
getdownloadform: function(url, requestparams) { var hiddenform = ext.getcmp('download-file-excel-form'); if (!hiddenform) { hiddenform = ext.create('ext.form.panel', { title:'hiddenform', id: 'download-file-excel-form', height:0, width: 0, hidden:true }); } hiddenform.getform().submit({ url: url, standardsubmit: true, method: 'post', timeout: 120000, params: requestparams }); }
Comments
Post a Comment