{
Roo.apply(this, cfg);
-
+ cfg = this;
if (this.grid) {
//--- simple method..
- cfg.method = cfg.method || 'GET';
+ this.method = this.method || 'GET';
- if (cfg.method == 'GET' && !cfg.params) {
+ if (this.method == 'GET' && !this.params) {
(function() {
submit = true;
- this.csvFrame.src = cfg.url;
+ this.csvFrame.src = this.url;
this.cleanup.defer(cfg.timeout || 30000,this);
}).defer(100, this);
var b = Roo.get(document.body);
this.form = b.createChild({
tag: 'form',
- method : cfg.method,
- action : cfg.url,
+ method : this.method,
+ action : this.url,
target : this.csvFrame.id,
enctype : 'multipart/form-data'
});
- for(var i in cfg.params) {
+ for(var i in this.params) {
var el = this.form.createChild( {
ns : 'html',
type: 'hidden',
name : i,
- value : cfg.params[i]
+ value : this.params[i]
});
(function() {
submit = true;
this.form.dom.submit();
- this.cleanup.defer(cfg.timeout || 30000,this);
+ this.cleanup.defer(this.timeout || 30000,this);
}).defer(100, this);