81,076
社区成员




<html>
<head>
<title>JSP for IndexForm form</title>
<script type="text/javascript"> djConfig = { isDebug: false }; </script>
<script type="text/javascript" src="js/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.io.*");
dojo.require("dojo.widget.*");
</script>
<script type="text/javascript">
var url ="<%=path%>/index.do";
function login()
{
alert("start..");
dojo.io.bind({
url:url,
load:funtion(type,data,evt){
alert(data);
},
error:funtion(type,error)
{
alert(error.message+" this is error");
},
timeoutSeconds:3000,
timeout:funtion(type)
{
alert("连接超时....");
}
});
}
</script>
</head>
<body>
<html:form action="/index">
姓名:<input type="text" id="name"/><br/>
密码:<input type="password" id="password"/><br/>
<input type="button" id="sub" value="登录" onclick="login()"/><br/>
</html:form>
</body>
</html>