пример jquery ajax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert(123);
$("#data").load("/tmp/tmp2.html", function (responseText, textStatus, XMLHttpRequest) {
alert('sssssssssss');
});
});
</script>
</head>
<body>
abc
<div id="data">
</div>
</body>
</html>