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:
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. Load from a text file?
Just wondering is it possible to load text from external text files?!?
03-24-2007 10:41 PM
Profile E-Mail PM Find Quote Report
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 »


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