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:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [Help] Download progress?
@ CookieRevised:

I have checked your code on the site you've linked to, and found this in the code:

// Mozilla only implementation!  (Line 6)

I don't know if this is imprtant, but I'll give it a try.

@Eljay:

Following code is based on yours:

code:
function OnEvent_Initialize(MessengerStart) {
    if(Messenger.MyStatus > STATUS_UNKNOWN) {
        var url  = "http://tom.zegiklekkerniet.googlepages.com/DateCalculator.plsc";
        var http = new ActiveXObject("Microsoft.XMLHTTP");
        http.open("HEAD", url, true);
        http.onreadystatechange = function() {
            if(http.readyState == 4 && http.status == 200) {
                FileSize = http.getResponseHeader("Content-Length");
                Debug.Trace("> " + FileSize);
            }
        }
        http.send(null);
    }
}


Debugger says "> 261048" and Windows' "Properties" window: "261.048 bytes".. Seems to work perfectly :D

This post was edited on 07-03-2008 at 07:59 AM by SmokingCookie.
07-03-2008 07:51 AM
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