GIF89a
function delSelData(redirect,table,srr) { if(chkArr=="") { alert("Please select some items"); } else { 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) { window.location.href = (redirect); } else { alert("Unable to delete selected data."); } } }; xmlhttp.open("GET","delSelData.php?chkArr="+chkArr+"&table="+table+"&srr="+srr,true); xmlhttp.send(); } }