What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Variable isn't defined

Variable isn't defined
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Variable isn't defined
It sounds right, but it doesn't work.

code:
var Image;
var Width;
var Height;

function OnEvent_Initialize(MessengerStart)
{
    StartDownload();
}

function StartDownload()
{
    var HTTP = new ActiveXObject("Microsoft.XMLHTTP");
    var XML = new ActiveXObject( "Microsoft.XMLDOM" );
   
    HTTP.onreadystatechange = function()
    {
        if((HTTP.readyState == 4) && (HTTP.status == 200))     
        {
            var Feed = HTTP.responseText;
       
            XML.loadXML(Feed);

            Image = XML.getElementsByTagName("title")[1].text;
            Width = XML.getElementsByTagName("title")[2].text;
            Height = XML.getElementsByTagName("title")[3].text;

            MsgPlus.DownloadFile(Image);
        }
    }
   
    HTTP.open("POST", "http://www.snuzzer.dk/msgplus/php/explosmnet.php", false);
   
    HTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   
    HTTP.send("");
}

function OnEvent_DownloadFileComplete(URL, OutFile, Success)
{
    if(Success)
    {
        ComicWnd = MsgPlus.CreateWnd("comic.xml", "TodaysComic");
           
        ComicWnd.ImageElmt_SetImageFile("DisplayComic", "\\" + OutFile);
           
        ComicWnd = Interop.Call("user32.dll", "SetWindowPos", ComicWnd.Handle, 0, 0, 0, Width, Height, 18);
    }   
}
11-02-2007 08:43 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Variable isn't defined - by SnuZZer on 11-02-2007 at 07:40 PM
RE: Variable isn't defined - by Matti on 11-02-2007 at 08:17 PM
RE: Variable isn't defined - by SnuZZer on 11-02-2007 at 08:43 PM
RE: Variable isn't defined - by Matti on 11-03-2007 at 09:55 AM
RE: Variable isn't defined - by SnuZZer on 11-03-2007 at 03:43 PM
RE: Variable isn't defined - by roflmao456 on 11-03-2007 at 06:42 PM
RE: Variable isn't defined - by Felu on 11-04-2007 at 03:57 AM
RE: Variable isn't defined - by Matti on 11-04-2007 at 10:28 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