收藏一个ajax的例子 注册检测

| |
[不指定 2007/08/04 01:13 | by Else ]
t.htm

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

t.asp

<%
 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
    Tags: ,
    代码 程序 编程 | 评论(2) | 引用(0) | 阅读(1905)
    请勿
    2008/09/25 17:14
    lovelovegrin
    请勿
    2008/09/25 17:14
    coolcool
    分页: 1/1 第一页 1 最后页
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]
                   

    验证码 不区分大小写