From 8206257a146a93722ef5251e057866c8d4d5505c Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Wed, 30 Sep 2009 20:12:06 +0000 Subject: merged patch from ctrlaltca which fixes the 'TActiveFileUpload is not "thread safe"' issue #90 --- .../source/prado/activefileupload/activefileupload.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'framework/Web/Javascripts') diff --git a/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js b/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js index 7a1e0e77..251a3d35 100755 --- a/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js +++ b/framework/Web/Javascripts/source/prado/activefileupload/activefileupload.js @@ -14,6 +14,13 @@ Prado.WebUI.TActiveFileUpload = Base.extend( this.error = $(options.errorID); Prado.Registry.set(options.inputID, this); + + var tempfield = document.createElement('input'); + tempfield.id = "tempActiveUploadField"; + tempfield.name = "tempActiveUploadField"; + tempfield.value = this.options.targetID; + tempfield.type = "hidden"; + this.form.appendChild(tempfield); // set up events if (options.autoPostBack){ @@ -27,7 +34,7 @@ Prado.WebUI.TActiveFileUpload = Base.extend( this.complete.style.display = 'none'; this.error.style.display = 'none'; this.indicator.style.display = ''; - + // set the form to submit in the iframe, submit it, and then reset it. this.oldtargetID = this.form.target; this.form.target = this.options.targetID; -- cgit v1.2.3