2011-08-24 119 views
0

我尝试使用Jquery和Ajax从客户端发送请求到服务器,但它不起作用。我甚至尝试过Ajax和Xml,但仍然无法正常工作。有人可以帮我解决这个问题吗? 这是我的代码。确保jquery-1.6.2.js与.html文件位于同一目录中,客户端和服务器也在同一个互联网上连接。没有回应客户端对服务器的请求

谢谢。

<html> 
<head> 
<script type="text/javascript" src="jquery-1.6.2.js"></script> 
<script type="text/javascript"> 
$(document).ready(function(){ 
    $("button").click(function(){ 
     $("div").load('http://myIPserver/isrhiproxy/isr_stm_info.aspx?requestType=101&query=20110823;1435;53173;any;139;n'); 
    }); 
}); 
</script> 
</head> 
<body> 
<div>Horaire Bus 139</div> 
<button>Voir</button> 
</body> 
</html> 

回答

0

您可以在执行跨域请求的同一台服务器上向.php脚本发出ajax请求,并返回结果。查找卷曲。

相关问题