What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Open page in the background

Open page in the background
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Open page in the background
Javascript:
code:
function OnWinEvent_CtrlClicked(Wnd, CtrlId){
    switch(CtrlId) {
        case 'BtnAccept': {
            for(var i=0; i < Wnd.LstView_GetCount('ListView'); i++) {
                if(Wnd.LstView_GetSelectedState('ListView', i) === true) {
                    oSendData('quote=this is a quote');
                }
            }
            break;
    }
}

function oSendData (sData) {
    var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.open('POST', 'http://www.snuzzer.dk/wowforge/admin-msgplus.php', true);

    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
            Debug.Trace(xmlhttp.responseText);
        }
    }
    xmlhttp.send(sData);
}

PHP:
code:
<? echo $_POST['quote']; ?>

Also your code appears to be messed. You have one to many breaks; look at the code.

[Image: v6sqvqwd-code.jpg]

This post was edited on 07-16-2008 at 05:13 PM by matty.
07-16-2008 02:46 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Open page in the background - by SnuZZer on 07-15-2008 at 06:16 PM
RE: Open page in the background - by matty on 07-15-2008 at 06:21 PM
RE: RE: Open page in the background - by SnuZZer on 07-15-2008 at 06:39 PM
RE: Open page in the background - by matty on 07-16-2008 at 12:33 AM
RE: Open page in the background - by SnuZZer on 07-16-2008 at 11:12 AM
RE: Open page in the background - by Ezra on 07-16-2008 at 01:36 PM
RE: Open page in the background - by SnuZZer on 07-16-2008 at 02:28 PM
RE: Open page in the background - by matty on 07-16-2008 at 02:46 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