Home >Backend Development >PHP Tutorial >网页不添加ruquire则一般

网页不添加ruquire则一般

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:14:031260browse

网页不添加ruquire则正常
环境winserver2003 ie8
一共有3个页面
a页面向b页面发送数据
a页面js部分


<script></script>
<script><br /><br />var myXmlHttpRequest="";<br />function getMessage(){<br />myXmlHttpRequest=getXmlHttpObject();<br />if(myXmlHttpRequest){<br />var url="GetMessageController.php";<br />var data="getter=<?php echo $loginuser; ?>&sender=<?php echo <br />$username ?>";<br />myXmlHttpRequest.open("post",url,true);<br />window.alert(data);<br />myXmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");<br />myXmlHttpRequest.onreadystatechange=function chuli(){<br /><br />if(myXmlHttpRequest.readyState==4){<br />if(myXmlHttpRequest.status==200){<br />window.alert("dsfsd");<br />var cities=myXmlHttpRequest.responseXML.getElementsByTagName('city');<br />var city_name=cities[1].childNodes[0].nodeValue;<br />window.alert(city_name);<br />}}}<br />//发送请求<br />myXmlHttpRequest.send(data);<br />}else{<br />window.alert("失败");<br />}}<br />window.setInterval(" getMessage()",5000);<br /></script>

------解决思路----------------------
你不要 a页面、b页面、c页面的

既然 var url="GetMessageController.php";
那么 GetMessageController.php 是哪个?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn