What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Download progress?

[Help] Download progress?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Help] Download progress?
I just was looking around too, and found roughly the same thing. However, it should be done with readyState 3, not with 4.... (as 4 is triggered when done)?

http://www.sitepoint.com/blogs/2004/05/26/xmlhttp...vascript-closures/

code:
86                // Called multiple while downloading in progress
87                case 3:
88                    // Notify user handler of download progress
89                    try {
90                        // Get the total content length
91                        // -useful to work out how much has been downloaded
92                        try {
93                            var contentLength = client.xmlhttp.getResponseHeader("Content-Length");
95                        } catch ( e) {
96                            var contentLength = NaN;
97                        } 
98     
99                        // Call the progress handler with what we've got
100                        client.userhandler.onProgress(
101                            client.xmlhttp.responseText,
102                            contentLength
103                        );
104     
105                    } catch ( e) { /* Handler method not defined */ }
106                break;

...

131        onProgress: function(responseText, length) {
132            echo("Downloaded "+responseText.length+" of "+length+"<br>");
133        },

This post was edited on 07-02-2008 at 08:32 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-02-2008 08:11 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Download progress? - by SmokingCookie on 07-01-2008 at 02:12 PM
RE: [Help] Download progress? - by Basilis on 07-01-2008 at 02:15 PM
RE: [Help] Download progress? - by mynetx on 07-01-2008 at 02:18 PM
RE: [Help] Download progress? - by SmokingCookie on 07-01-2008 at 02:19 PM
RE: [Help] Download progress? - by CookieRevised on 07-01-2008 at 09:33 PM
RE: [Help] Download progress? - by SmokingCookie on 07-02-2008 at 07:42 AM
RE: [Help] Download progress? - by CookieRevised on 07-02-2008 at 06:08 PM
RE: [Help] Download progress? - by Matti on 07-02-2008 at 06:16 PM
RE: [Help] Download progress? - by SmokingCookie on 07-02-2008 at 07:26 PM
RE: [Help] Download progress? - by CookieRevised on 07-02-2008 at 07:39 PM
RE: [Help] Download progress? - by SmokingCookie on 07-02-2008 at 07:46 PM
RE: [Help] Download progress? - by Eljay on 07-02-2008 at 07:53 PM
RE: [Help] Download progress? - by CookieRevised on 07-02-2008 at 08:11 PM
RE: [Help] Download progress? - by Eljay on 07-02-2008 at 08:16 PM
RE: [Help] Download progress? - by SmokingCookie on 07-03-2008 at 07:51 AM
RE: [Help] Download progress? - by CookieRevised on 07-03-2008 at 11:44 PM
RE: RE: [Help] Download progress? - by SmokingCookie on 07-04-2008 at 07:28 AM
RE: [Help] Download progress? - by Matti on 07-04-2008 at 08:58 AM
RE: [Help] Download progress? - by mynetx on 10-01-2008 at 09:41 AM
RE: [Help] Download progress? - by CookieRevised on 10-04-2008 at 08:51 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On