日期:2014-05-17 浏览次数:20569 次
 $.ajax({
            type:"post",//请求方式
            url:"../ajax/AjaxLogin.ashx",//载入页面的URL地址
            data:{username:$("#TxtUserName").val(),userpwd:$("#TxtUserPwd").val()},
            success:function(data){//返回成功的函数
            if(data =="0"){
            show();
            setTimeout("window.location.href='../FrameSet/FatherFrame.aspx';",700);
            }else
            {
                alert('账号密码错误或您的账号未被启用!');
                document.getElementById("TxtUserName").value="";
                document.getElementById("TxtUserPwd").value="";
                document.getElementById("TxtUserName").focus();
            }
            }
            });