Created
June 27, 2011 05:41
-
-
Save crosalot/1048361 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 | |
24 var upload = { | |
25 onloadstart: function (evt) { | |
26 bar.addClass('uploading'); | |
27 }, | |
28 | |
29 onprogress: function (evt) { | |
30 var percent = evnt.loaded/evt.total*100; | |
31 progress.css('width', percent + '%') | |
32 }, | |
33 | |
34 onload: function (evt, resp) { | |
35 count_complete++; | |
36 console.log(this); | |
37 | |
38 if (count_complete + count_error >= len) { | |
39 gallery_init(); | |
40 } | |
41 | |
42 }, | |
43 | |
44 onerror: function (evt) { | |
45 count_error++; | |
46 } | |
47 }; | |
48 | |
49 /* | |
50 xhr.upload.onloadstart = function (evt) { | |
51 bar.addClass('uploading'); | |
52 }; | |
53 | |
54 xhr.upload.onprogress = function (evt) { | |
55 var percent = evnt.loaded/evt.total*100; | |
56 progress.css('width', percent + '%') | |
57 }; | |
58 | |
59 xhr.upload.onload = function (evt, resp) { | |
60 count_complete++; | |
61 console.log(getResp(xhr)()); | |
62 | |
63 if (count_complete + count_error >= len) { | |
64 gallery_init(); | |
65 } | |
66 | |
67 }; | |
68 | |
69 xhr.upload.onerror = function (evt) { | |
70 count_error++; | |
71 }; | |
72 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment