GIF89a
function deleteOrderStatus(sr){ if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { if(this.responseText==1) { alert("Selected product status has been removed"); window.location.href = ("m_o_t.php"); } else { alert("Error : Unable to remove selected product status. \n Please contact to developers"); } } }; xmlhttp.open("GET","deleteOrderStatus.php?sr="+sr,true); xmlhttp.send(); }