yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

ProgressHandler on HttpRequestUpload is not working #241

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: gwt_gears-1.2.0

Detailed description: ProgressHandler on HttpRequestUpload is not working

I have tried this code and it doesn't seem to be working:
request.getUpload().setProgressHandler(new ProgressHandler() {
                            public void 
onProgress(ProgressEvent event) {
                                double pcnt 
= ((double) event.getLoaded() / event.getTotal());

progressInner.setWidth((int) Math.floor(pcnt * 100)+ "%");
                            }
                        });

Workaround if you have one:

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by csvala...@gmail.com on 14 Feb 2009 at 5:48

GoogleCodeExporter commented 9 years ago
This looks like the handler code straight from the upload demo:

http://code.google.com/p/gwt-google-
apis/source/browse/releases/gears/1.2/samples/upload/src/com/google/gwt/gears/sa
mple/
upload/client/UploadDemo.java

From running the live demo, I can see that it seems to be broken there too.  
Funny, 
I've seen it work before!

http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-
apis&t=GearsSampleApplications

Original comment by galgwt.reviews@gmail.com on 15 Feb 2009 at 2:20

GoogleCodeExporter commented 9 years ago
As pointed out in issue 242, this problem exists in Chrome & IE7, but works 
fine in
Firefox.

I found this issue in the gears code site issue tracker which might be related: 
   http://code.google.com/p/gears/issues/detail?id=385

Original comment by ericzun...@gmail.com on 15 Feb 2009 at 1:15

GoogleCodeExporter commented 9 years ago
See fix under review at:

  http://galgwt-reviews.appspot.com/11602

Original comment by galgwt.reviews@gmail.com on 23 Mar 2009 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 27 Apr 2009 at 2:38

GoogleCodeExporter commented 9 years ago
Updating account names

Original comment by zundel@google.com on 21 Dec 2009 at 2:00