110,533
社区成员
发帖
与我相关
我的任务
分享
function CheckLogn(URL,struser,strpwd){
var objXmlHttp = new ActiveXObject('MICROSOFT.XMLHTTP');
//先说192.168.0.20的网站是要求AD验证登录的
objXmlHttp.open("GET","http://192.168.0.20",false,struser,strpwd);
objXmlHttp.send();
if(objXmlHttp.status =="200")
{
alert("请输入正确的帐号密码!");
}
else
{
// 我返回来的status为何总是401:未授权
alert("请输入正确的帐号密码!");
}
}
function CheckLogn(URL,struser,strpwd){
var objXmlHttp = new ActiveXObject('MICROSOFT.XMLHTTP');
//先说192.168.0.20的网站是要求AD验证登录的
objXmlHttp.open("GET","http://localhost:6983/Web/Infomation/School_List.aspx",false,struser,strpwd);
objXmlHttp.send();
if(objXmlHttp.status =="200")
{
alert("请输入正确的帐号密码1!");
}
else
{
// 我返回来的status为何总是401:未授权
alert("请输入正确的帐号密码2!");
}
}
</script>
<a href="#" onclick="CheckLogn('','sdfd','sdfds')">sfsdfsdf</a>