From: Alan Knowles Date: Wed, 14 Aug 2019 07:53:27 +0000 (+0800) Subject: Pman.Download.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=db45ce8a9a30ddebc1800dabf71fb4a5d96deecc Pman.Download.js --- diff --git a/Pman.Download.js b/Pman.Download.js index 71eef776..6d2b6fac 100644 --- a/Pman.Download.js +++ b/Pman.Download.js @@ -71,6 +71,10 @@ Pman.Download = function(cfg) if (this.method == 'GET' && !this.params) { (function() { + + + this.createCsvFrame(); + Roo.EventManager.on( this.csvFrame, 'load', this.onLoad, this); this.submit = true; this.csvFrame.src = cfg.url; //this.cleanup.defer(cfg.timeout || 30000,this); @@ -167,7 +171,7 @@ Roo.apply(Pman.Download.prototype, { failure : false, // private.. - /* + //used by simple GET method. createCsvFrame: function() { if (this.csvFrame) { @@ -189,7 +193,7 @@ Roo.apply(Pman.Download.prototype, { } }, - + /* not used as it didn't work.. onLoad : function() { // requested++; // second request is real one..