What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HTTP on Vista

HTTP on Vista
Author: Message:
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
39 / Male / Flag
Joined: Mar 2007
O.P. HTTP on Vista
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
[Image: adsig.jpg]
07-29-2008 02:42 AM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: HTTP on Vista
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
[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-29-2008 04:04 AM
Profile PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: HTTP on Vista
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).

This post was edited on 07-29-2008 at 08:45 AM by SmokingCookie.
07-29-2008 08:45 AM
Profile PM Find Quote Report
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
39 / Male / Flag
Joined: Mar 2007
O.P. RE: HTTP on Vista
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
[Image: adsig.jpg]
07-29-2008 01:37 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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