Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8743 closed defect (fixed)

FileUploader still fails

Reported by: Mike Wilcox Owned by: Mike Wilcox
Priority: high Milestone: 1.3
Component: Dojox Version: 1.3.0b1
Keywords: flieuploader uploader percentloaded Cc:
Blocked By: Blocking:

Description

Refs #8717, #8667 After much too much testing and workarounds, I found the problem with the Flash initialization. Creating the embed object too quickly causes a double-swf to be created. For example, this failed:

this.flashDiv = dojo.doc.createElement("div");
this.flashDiv = dojo.body().appendChild(this.flashDiv);
this.flashObject = new dojox.embed.Flash(args, this.flashDiv);

The fix is to use a setTimeout in the dojox.embed.Flash. Several tests shows that this kills the bug. Note the timeout should not affect other usage, since it was not a synchronous call anyway; you had to wait for onLoad().

Change History (3)

comment:1 Changed 11 years ago by Mike Wilcox

(In [16799]) Refs #8743 - removed testCall since dojox.embed.Flash works correctly now.

comment:2 Changed 11 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

(In [16800]) Fixes #8743 - Needed a little time between dom creation and embeded object creation. Fixed some wicked bugs. !strict

comment:3 Changed 11 years ago by Mike Wilcox

(In [16802]) Refs #8743 - backed out the rebuild swf stuff. Fixed a bug in IE for the FLAVideo test, something initilizing too fast I guess.

Note: See TracTickets for help on using tickets.