Tried everything suggested, the script seems to just ignore my function calls =/
Here is my entire code:
js code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnEvent_MenuClicked (MenuItemId, Location, OriginWnd)
{
// Captures when the user clicks on the 'WLMBb' menu
if (MenuItemId=="Manage") fillTable();
}
function CreateXML() {
try {
var xml = new ActiveXObject("Microsoft.XMLDOM");
} catch(e) { try {
var xml = new ActiveXObject("MSXML2.DOMDocument");
} catch(e) { return; } }
xml.async = false;
return xml;
}
function onManageEvent_CtrlClicked (PlusWnd, ControlId)
{
if (ControlId == "Refresh")
{
fillTable();
}
}
function fillTable()
{
// Opens the window and loads the tasks from the XML file.
var Manage = MsgPlus.CreateWnd("Interface.xml", "Manage");
var XML = CreateXML();
XML.load('tasks.xml');
var Tasks = XML.selectNodes('/Tasks/Task');
IntTaskList = Tasks.lenght
IntId = 0;
for (i=1; i<Tasks.length; i ++)
{
var TaskNode = Tasks[i];
var NameNode = TaskNode.selectSingleNode("Name");
var ExpiNode = TaskNode.selectSingleNode("Expiration");
var CrseNode = TaskNode.selectSingleNode("Course");
Manage.LstView_AddItem("ListViewName", NameNode.text, IntId++);
Manage.LstView_AddItem("ListViewExpiration", ExpiNode.text, IntId++);
Manage.LstView_AddItem("ListViewCourse", CrseNode.text, IntId++);
}
}
And this is all the output that the debug window displays
code:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Function called: OnEvent_MenuClicked
Function called: OnManageEvent_CtrlClicked
I appreciate the help tremendously, and I now love you to death for introducing me to XPath, that thing is brilliant