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

error with HttpRequest
Author: Message:
Montago
Junior Member
**


Posts: 25
Joined: Sep 2006
O.P. error with HttpRequest
im trying to make a GET command, to download an XML

code:
function loadXMLDoc(url){
    Debug.Trace("loading XML");
   
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

    xmlhttp.open("GET",url,true);
   
    xmlhttp.onreadystatechange = function(){
        if( xmlhttp.readystate==4 ){
            Debug.Trace(xmlhttp.responseText);
           
            var response = xmlhttp.responseXML.documentElement;
            var x = response.getElementsByTagName('currency');

            for (i=0;i<x.length;i++){
                arr[i+1] = new Array(
                x[i].getAttribute('code'),
                x[i].getAttribute('rate').replace(",","."),
                x[i].getAttribute('desc') );
            }
        }//if
    }//function
    xmlhttp.send(null);
}



but, im getting an error at the xmlhttp.send(null) ... also tried send(' ')

this function loads an XML, then strip the content... but i get an error :(


also... were do i call this function to make it run a single time ??
10-01-2006 12:32 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
error with HttpRequest - by Montago on 10-01-2006 at 12:32 AM
RE: error with HttpRequest - by Montago on 10-01-2006 at 12:35 AM


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