Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://localhost/ReportBL.js :: handleStateChange :: line 31" data: no] Source File: http://localhost/ReportBL.js Line: 31 // SCRIPT var xmlHttp; function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } } var id; function reportBroken(record_id,record_url,link_id) { var submitURL = '' + '/ReportBL.php?' + 'id=' + record_id + '&url=' + record_url ; id = link_id; isRatingsBarChanged = true; createXMLHttpRequest(); xmlHttp.onreadystatechange = handleStateChange; xmlHttp.open("GET", submitURL, true); xmlHttp.send(null); } function handleStateChange() { alert("Changed? "+xmlHttp.readyState+":"+xmlHttp.status+" id:"+id); if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { document.getElementById(id).href = '#'; document.getElementById(id).innerHTML = 'thank you'; alert("Thank you for voting"); } else { alert("Error in AJAX "+xmlHttp.status); } } return true; }