What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] xmlhttp POST

[?] xmlhttp POST
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. [?] xmlhttp POST
I'm trying to send variables with POST, but only have them as a query string at the moment... How would I be able to send them?
<Eljay> "Problems encountered: shit blew up" :zippy:
12-02-2006 06:25 PM
Profile PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: [?] xmlhttp POST
code:
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", url, true);
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState==4) {
        if(xmlhttp.status == 200){
            //worked                   
        }else{
            //error   
   
        }
    }
}

xmlhttp.send("moo=xxx&cow=eksdf");   

[Image: dt2.0v2.png]      Happy Birthday, WDZ
12-02-2006 06:58 PM
Profile 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