Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread 2.05B1 Persistant load error
Mon, Aug 22 2016 8:23 AMPermanent Link

Trinione

I am using the FileUpload code found here:
http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_demos&msg=216

Am getting an error now that did not occur prior.

Application Error
Uncaught Error: Persistant load error (cannot read property 'addEventListener' of null)
Line 2062


Calling this via:
external procedure UploadDropZone(ADropZoneName: String; AOnFileLoadedCallback: TOnFileLoaded; AOnFileLoadError: TOnFileLoadError; AAllowMultiple: Boolean);
Mon, Aug 22 2016 11:58 AMPermanent Link

Walter Matte

Tactical Business Corporation

To make this work I put a Timer on the form.

move the UploadDropZone  line to the timer.

procedure TFrmMain.FrmMainShow(Sender: TObject);
begin
 Timer1.enabled :=true;
end;

procedure TFrmMain.Timer1Timer(Sender: TObject);
begin                  
  timer1.enabled := false;
  if timer1.tag = 1 then exit;
  timer1.tag := 1;
  UploadDropZone(pnlDropZone.ClientID,OnFileLoaded,OnFileLoadError,false); //last Param is for Multi-Select support!
end;
Mon, Aug 22 2016 1:25 PMPermanent Link

thomh

What has changed that makes this necessary?

// Thom
Mon, Aug 22 2016 1:32 PMPermanent Link

Raul

Team Elevate Team Elevate

On 8/22/2016 11:58 AM, Walter Matte wrote:
> To make this work I put a Timer on the form.
> move the UploadDropZone  line to the timer.

In that case async call might works as well and would be in-line and not
require a timer.

In FrmMainShow call :

async UploadDropZone(
pnlDropZone.ClientID,OnFileLoaded,OnFileLoadError,false);

Raul
Mon, Aug 22 2016 1:35 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< What has changed that makes this necessary? >>

As far as I can tell, it's a bug and I'm looking into it.

Tim Young
Elevate Software
www.elevatesoft.com
Image