Microsoft.XMLHTTP failing to uncompress a file

Joined
Jul 3, 2006
Messages
3
Reaction score
0
Hi,

I'm attempting to use the XMLHTTP object to fetch a compressed file then load it into an XML object. On a client PC the file is always remaining uncompressed and hence failing to do the load.

Anyone ever seen this before?

He is my code:
Code:
 var messageFile = new ActiveXObject("Microsoft.XMLDOM");
    messageFile.async = false; 
    messageFile.preserveWhiteSpace = true;


    var httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    httpRequest.open('GET', server.value + '/logonMsgFile.zhtml', false);
    httpRequest.send('');
    messageFile.load(httpRequest.responseBody);
    if (messageFile.documentElement == null)
       alert('failed to load message file');



Thanks,
Mike
 
Back
Top