@ 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