t.htm
t.asp
作者:Else 's Blog
地址:http://www.aixq.com/post/795/
版权所有。转载时必须链接形式注明作者和原始出处及本声明! 在
中查看更多“收藏一个ajax的例子 注册检测”相关内容
在
中查看更多“收藏一个ajax的例子 注册检测”相关内容
在
中查看更多“收藏一个ajax的例子 注册检测”相关内容
在
中查看更多“收藏一个ajax的例子 注册检测”相关内容
在
中查看更多“收藏一个ajax的例子 注册检测”相关内容
在
中查看更多“收藏一个ajax的例子 注册检测”相关内容
最后编辑: Else 编辑于2007/08/23 20:21
<script>
function f(){
var req =new ActiveXObject("Microsoft.XMLHTTP");
req.open("GET","t.asp?t1="+t1.value, true);
req.onreadystatechange = function(){
if (req.readyState == 4) {
if (req.status == 200) {
msg.innerText = req.responseXML.documentElement.tagName;
}
}
}
req.send(null);
}
</script>
<div>1:显示"OK"; 其他字符:显示"Error"</div>
<input id=t1 value=1>
<input type=button value="检测" onclick="javascript:f()">
<div id=msg></div>
function f(){
var req =new ActiveXObject("Microsoft.XMLHTTP");
req.open("GET","t.asp?t1="+t1.value, true);
req.onreadystatechange = function(){
if (req.readyState == 4) {
if (req.status == 200) {
msg.innerText = req.responseXML.documentElement.tagName;
}
}
}
req.send(null);
}
</script>
<div>1:显示"OK"; 其他字符:显示"Error"</div>
<input id=t1 value=1>
<input type=button value="检测" onclick="javascript:f()">
<div id=msg></div>
t.asp
<%
Response.ContentType="text/xml"
if request.querystring("t1")="1" then
response.write("<OK/>")
else
response.write("<ERROR/>")
end if
%>
Response.ContentType="text/xml"
if request.querystring("t1")="1" then
response.write("<OK/>")
else
response.write("<ERROR/>")
end if
%>
作者:Else 's Blog
地址:http://www.aixq.com/post/795/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
中查看更多“收藏一个ajax的例子 注册检测”相关内容
中查看更多“收藏一个ajax的例子 注册检测”相关内容
中查看更多“收藏一个ajax的例子 注册检测”相关内容
中查看更多“收藏一个ajax的例子 注册检测”相关内容
中查看更多“收藏一个ajax的例子 注册检测”相关内容
中查看更多“收藏一个ajax的例子 注册检测”相关内容最后编辑: Else 编辑于2007/08/23 20:21
请勿
2008/09/25 17:14


请勿
2008/09/25 17:14

分页: 1/1
1
1
mssql的企业管理器出了问题了!
Ajax应用实例: asp+mdb数据库注册模块例子


2007/08/04 01:13 | by 
