易截截图软件、单文件、免安装、纯绿色、仅160KB

这个AJAX哪里错了呢

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档 </title>
</head>
<script language="JavaScript" type="text/JavaScript">
function Login(username,password)
{
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")
xmlHttp.open("POST", "2-1.asp?username="+username+"&password="+password,false)
xmlHttp.send()
var re=xmlHttp.responseText;
//alert(re);
//setTimeout("Login(sendvalue.username.value,sendvalue.password.value)",1000);
}
</script>
<body>
<form method=post name=sendvalue>
<input type=text name=username>
<input type=password name=password>
<input name="ok" type="button" value="/提交" onClick="Login(sendvalue.username.value,sendvalue.password.value)">
</form>
<div id="re"> </div>
</body>
</html>
2-1.asp文件如下:
<%
response.Write request("username")
response.Write request("password")
%>
<script language="JavaScript" typ


相关问答:

Asp.net Ajax javascript 子类如何调用父类的变量

HTML code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DT ......

Asp.net中使用ajax服务器端返回的值的问题

前台代码:
HTML code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<!DOCTYPE html PUBLIC &qu ......

ajax详解的疑问

第14章 的树型菜单的例子不能在IE中正常显示(树的结构可以展开,但展开后再点击就不能收缩了),但能在谷歌浏览器中使用,有看此书的朋友能指点下吗?
好贴 呵

dfgfgfgffffff


谢谢。
......

ajax的AsyncPostBackTrigger没效果

            <div id="div6" runat="server" style= "height:auto;width:auto; text-align: left;">
          & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号