php中嵌套Ajax脚本,运行时什么都没有出现客户端代码: Information <br /> var xmlHttp ;<br /> function createXMLHttpRequest(){<br /> if(window.ActiveXObject){<br /> xmlHttp=new ActiveXObject("Microsoft.XMLHTTP") ;<br /> }else if(window.XMLHttpRequest){<br /> xmlHttp=new XMLHttpRequest() ;<br /> }<br /> }<br /> function check(){<br /> createXMLHttpRequest() ;<br /> var name=document.getElementById("name").value ;<br /> var author=document.getElementById("author").value ;<br /> var pl=document.getElementById("publisher") ;<br /> var publisher=pl.options[pl.selectedIndex].text ;<br /> var isbn=document.getElementById("isbn").value ;<br /> var tp=document.getElementById("type") ;<br /> var publisher=tp.options[tp.selectedIndex].text ;<br /> var price=document.getElementById("price").value ;<br /><br /> var str="name="+name+"&author="+author+"&publisher="+publisher+"&isbn="+isbn+"&type="+type+"&price="+price ;<br /> var url="addsend.php" ;<br /> xmlHttp.open("POST" , url , true) ;<br /> xmlHttp.onreadystatechange=callback ;<br /> xmlHttp.setRequestHeader("Content-Type" , "application/x-www-form-urlencoded") ;<br /> xmlHttp.send(str) ;<br /><br /> }<br /> function callback(){<br /> if(xmlHttp.readyState==4){<br /> if(xmlHttp.status==200){<br /> var str1=xmlHttp.responseText ;<br /> if(str1=="1"){<br /> alert("