//--- simple method..
cfg.method = cfg.method || 'GET';
- if (cfg.method == 'GET') {
+ if (cfg.method == 'GET' && !cfg.params) {
(function() {
submit = true;
this.csvFrame.src = cfg.url;
var b = Roo.get(document.body);
this.form = b.createChild({
tag: 'form',
- method : 'POST',
+ method : cfg.method,
action : cfg.url,
target : this.csvFrame.id,
enctype : 'multipart/form-data'
- }
+ },
// private - clean up download elements.
cleanup :function()