Extjs 4 downloading a file through ajax call

前端 未结 7 1256
陌清茗
陌清茗 2021-01-06 16:16

The problem is very simple: i have to download a file when i submit a form, it\'s an ajax call when the form is submitted which lets me build a file with the data taken from

7条回答
  •  时光说笑
    2021-01-06 17:04

    After extracting/reading many posts, I managed to get this simple method to work..

                    Ext.create('Ext.form.Panel', {
                        renderTo: Ext.getBody(),
                        standardSubmit: true,
                        url: 'URL'
                    }).submit({params: {'PARAM1': param1, 'PARAM2': param2}});
    

提交回复
热议问题