查看: 4311|回复: 2

[文章教程] ASP+AJAX技术的注册会员程序

[复制链接]
ttasp 发表于 2015-5-16 10:08:32 | 显示全部楼层 |阅读模式
asp_ajax注册demo.jpg
  1. {
  2.    
  3.   if(num=="")
  4.   {
  5.    alert('请输入序号');
  6.    //this..focus();
  7.    return false;
  8.   }
  9.    var  formData = "id="+escape(id)+"&num="+escape(num);  //Name value Pair
  10. $.ajax({
  11.     url : "user_lock.asp",
  12.     type: "POST",
  13.     data : formData,
  14.     success: function(data, textStatus, jqXHR)
  15.     {
  16.         //data - response from server
  17.                 location.reload(true);
  18.     },
  19.     error: function (jqXHR, textStatus, errorThrown)
  20.     {

  21.     }
  22. });

  23. }
复制代码

asp_ajax注册验证.rar

10.53 KB, 下载次数: 21, 下载积分: 威望 1 个

售价: 5 个ASP币  [记录]

低语 发表于 2015-5-27 08:39:22 | 显示全部楼层
我来看看。
xuanxiao 发表于 2022-3-31 00:22:34 | 显示全部楼层
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>AJAX示范</title>
  6. <script src="https://7n.w3cschool.cn/statics/js/jquery-1.8.3.min.js" type="text/javascript"></script>
  7. </head>

  8. <body>
  9. <div>点击按钮获取JSON数据</div>
  10. <input type="button" id="button" value="确定" />
  11. <div id="result"></div>
  12. </body>
  13. </html>
  14. <script>

  15.         $('#button').click(function(){
  16.                 $.ajax({
  17.                 type:"GET",
  18.                 url:"http://121.22.13.158/index.asp",
  19.                 dataType:"json",
  20.                 data:"r=0.7" ,//+ pageIndex,
  21.                 success:function(data){
  22.                  console.log(data)
  23.                   
  24.             }
  25.          });
  26. });

  27. </script>
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号