What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Load from a text file?

Load from a text file?
Author: Message:
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: Load from a text file?
You can use MsgPlus.DownloadFile(); or a XML HTTP Request.

DownloadFile :
If you look in the scripting documentation under Objects Reference -> MsgPlus Object -> Functions -> DownloadFile there is an example for a text file :).

XML HTTP Request:
code:
http_request = new ActiveXObject("Microsoft.XMLHTTP");
http_request.open('GET', "http://server.com/test.txt", true);
     http_request.onreadystatechange = function(){
           if (http_request.readyState == 4) {
                if (http_request.status == 200) {
                     TextFileContents = http_request.responseText;
                }
           }
     };
http_request.send(null);

This post was edited on 03-24-2007 at 10:59 PM by hmaster.
[Image: sig.png]
03-24-2007 10:51 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Load from a text file? - by Ashylay on 03-24-2007 at 10:41 PM
RE: Load from a text file? - by hmaster on 03-24-2007 at 10:51 PM


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