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.
Now I have tried with MsgPlus.ScripFilesPath + "\\indstillinger.xml" but I can't get it work.

Heres my code:
code:
function OnWndMainEvent_CtrlClicked(Wnd, Handling)
{
    switch(Handling)
    {
        case "knap_tilfoej":
            var Sti = MsgPlus.ScriptFilesPath + "\\indstillinger.xml";
            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(Sti);
            var toAdd = xml.createElement("Navn");
            toAdd.appendChild(xml.createTextNode(Navn));
            xml.getElementsByTagName("Navn")[0].appendChild(toAdd);
            xml.save(Sti);
            Wnd.Close(1);
            break;
        case "knap_luk":
            Wnd.Close(1);
            break;
    }
}

And here is my XML-document (indstillinger.xml)
code:
<?xml version="1.0" encoding="UTF-8"?>
<Indstillinger>
</Indstillinger>
10-30-2006 02:31 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