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:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
RE: Save to XML
quote:
Originally posted by SpunkyLoveMuff
unlikely... It should use a file in the local folder...
Which is the My Documents folder and i found that very unlikely to put an XML file...

Btw, if you want to close the window after saving the file (when it works) remove break;
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");
// Removed the break; here
case "knap_luk":
Wnd.Close(1);
break;
}
}


This post was edited on 10-30-2006 at 01:14 PM by Plan-1130.
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
10-30-2006 01:09 PM
Profile E-Mail PM 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