日期:2014-05-16 浏览次数:20830 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script language="javascript" type="text/javascript">
var xhr;
var num;
function CreateXmlHttp() {
if (window.ActiveXObject) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
xhr = new XMLHttpRequest();
}
}
function SendReq() {
num = document.getElementById("txtNum").value;
CreateXmlHttp();
var url = "Handler.ashx?num=" + num;//这儿应该是你请求的那个JSP页面
xhr.open("GET", url, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {