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;
}
}