Thanks, but I don't think, I'm using the script the right way.
quote:
function OnWinEvent_CtrlClicked(Wnd, CtrlId)
{
switch(CtrlId)
{
case "BtnAccept":
{
for(var i=0; i < Wnd.LstView_GetCount("ListView"); i++)
{
if(Wnd.LstView_GetSelectedState("ListView", i) === true)
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", "http://www.snuzzer.dk/wowforge/admin-msgplus.php", true);
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4)
{
Debug.Trace(xmlhttp.responseText);
}
}
xmlhttp.send("quote=32");
break;
}
}
break;
}
}
}
I guess the
xmlhttp.onreadystatechange=function() function is only for the debug trace.
But what is
xmlhttp.send("quote=32"); for?
I will be able to use the get function by changing the URL in the following line:
quote:
xmlhttp.open("POST", "http://www.snuzzer.dk/wowforge/admin-msgplus.php", true);
To something smilar to:
quote:
xmlhttp.open("POST", "http://www.snuzzer.dk/wowforge/admin-msgplus.php?quote=32", true);