我尝试使用Jquery和Ajax从客户端向服务器发出请求,但这不起作用。我什至尝试了Ajax和Xml,但仍然无法正常工作。有人可以帮我解决这个问题吗?
这是我的代码。确保jquery-1.6.2.js与.html文件位于同一目录中,并且客户端和服务器也位于同一Internet网络上。

谢谢。

<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>

最佳答案

您有一个绝对URI,这表明您正在尝试违反same origin policy已经存在的are many questions and answers

10-08 13:29
查看更多