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

Save to XML
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Save to XML
Hi.
When i click on "knap_tilfoej" and try to save the settings nothing happens. It doesn't close the window and it doesn't save the settings.
Here is the script:
code:
function OnWndMainEvent_CtrlClicked(Wnd, Handling)
{
    switch(Handling)
    {
        case "knap_tilfoej":
            var Navn = Wnd.GetControlText("input_navn");
            var Modtaget = Wnd.GetControlText("input_modtaget");
            var Svar = Wnd.GetControlText("input_svar");
           
            var xml = new ActiveXObject("Microsoft.XMLDOM");
            xml.load("indstillinger.xml");
            var toAdd = xml.createElement("Navn");
            toAdd.appendChild(xml.createTextNode(Navn));
            xml.getElementsByTagName("Navn")[0].appendChild(toAdd);
            xml.save("indstillinger.xml");
            break;
        case "knap_luk":
            Wnd.Close(1);
            break;
    }
}
10-29-2006 04:36 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Save to XML - by SnuZZer on 10-29-2006 at 04:16 PM
RE: Save to XML - by Felu on 10-29-2006 at 04:23 PM
RE: Save to XML - by SnuZZer on 10-29-2006 at 04:36 PM
RE: Save to XML - by Plan-1130 on 10-29-2006 at 07:47 PM
RE: Save to XML - by Spunky on 10-29-2006 at 09:44 PM
RE: Save to XML - by deAd on 10-29-2006 at 10:48 PM
RE: Save to XML - by Plan-1130 on 10-30-2006 at 01:09 PM
RE: Save to XML - by SnuZZer on 10-30-2006 at 02:31 PM
RE: Save to XML - by Matti on 10-30-2006 at 03:10 PM
RE: Save to XML - by SnuZZer on 10-30-2006 at 04:49 PM
RE: Save to XML - by Matti on 10-30-2006 at 04:54 PM
RE: Save to XML - by SnuZZer on 10-30-2006 at 05:01 PM
RE: Save to XML - by SnuZZer on 10-30-2006 at 07:04 PM
RE: Save to XML - by Spunky on 10-30-2006 at 08:38 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