Testing the code i write this:
code:
function wp(ChatWnd){
var xml = new ActiveXObject('Microsoft.XMLDOM');
//Create the ActiveX object
xml.load("http://whatpulse.org/api/users/171247.xml");
//Load the XML file
var totalKeyCount = xml.selectNodes("/UserStats/TotalKeyCount/text()");
//Get the text from the node
var message = "I have made "+totalKeyCount+" key strokes.";
//Create a message
ChatWnd.SendMessage(message);
//Send the message --- Make sure ChatWnd is defined!!!
}
And i write in my first chat window: /script wp 1
but the menssage is: Joakin dice (16:42):
I have made key strokes.
it doesnt show the numbers.