Shoutbox

HTTP on Vista - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: HTTP on Vista (/showthread.php?tid=85053)

HTTP on Vista by ArkaneArkade on 07-29-2008 at 02:42 AM

Hey folks.  I've recently updated to Vista, but with it I've started having problems with on of my scripts.

Basically put, I'm trying to send data to a web server on my network.  This used to work fine on XP but now it doesnt.  The offending code is this:

code:
http = new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET", url, true, user, pass);
http.send(sendthis);


I'm presuming that the problem is that the required ActiveX control doesnt exist on Vista, so I'm looking for a Vista alternative.  can anyone give me any pointers?

Cheers guys
Leroux
RE: HTTP on Vista by -dt- on 07-29-2008 at 04:04 AM

quote:
Originally posted by Leroux
I'm presuming that the problem is that the required ActiveX control doesnt exist on Vista, so I'm looking for a Vista alternative.  can anyone give me any pointers?

it works fine here
RE: HTTP on Vista by SmokingCookie on 07-29-2008 at 08:45 AM

Hmm.. Perhaps you should try this:

code:
try {
      http = new XMLHttpRequest;
}
catch(e) {
      try {
            http = new ActiveXObject("Microsoft.XMLHTTP");
      }
}


I've got to know that Vista with IE 7 supports this (although I could not confirm the source).
RE: HTTP on Vista by ArkaneArkade on 07-29-2008 at 01:37 PM

OK, thanks SmokingCookie - 10 seconds and that was working perfectly so thanks very much.

-dt- It was just a guess, but if you have it working I may do a little extra searching to find out the difference.... I'm more used to that method.

Cheers guys