Change the PostInfo function to this:
code:
function PostInfo(status) {
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', 'http://www.mysite.com/statusmsn.php');
var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
xmlhttp.onreadystatechange = function() {
Debug.trace('xmlttp function');
if(xmlhttp.readyState === 4 && xmlhttp.status === 200) {
Debug.Trace('Received info-> ' + xmlhttp.responseText);
ParseResponse(xmlhttp.responseText);
}else{
Debug.trace('Post failed!');
}
}
xmlhttp.open('POST', 'http://www.mysite.com/statusmsn.php', true);
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
var str = 'user=' + Messenger.MyEmail + '&status=' + status;
Debug.trace('Posted info-> ' + str);
xmlhttp.send(str);
}