carllawl
New Member
Posts: 11
Joined: May 2010
|
O.P. RE: Now playing - XML Document
So far I have
code: var url = "http://69.175.111.66:8301/admin.cgi?mode=viewxml";
Interop.Call("wininet.dll", "DeleteUrlCacheEntryW", url);
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", url, true, "user", "pass");
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4)
if (xmlhttp.responseCode == 200) {
// Data from URL was retrieved successfully
// Data is saved in the variable xmlhttp.responseText
} else {
// The server returned an HTTP code other than 200
}
}
xmlhttp.send();
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind) {
// If message is start
if(Message.toLowerCase() == "!current")
{
ChatWnd.SendMessage("Currently playing is:");
ChatWnd.SendMessage(xmlhttp.responseText);
}
}
|
|