jsp 怎样实现检测用户名是否存在!象csdn那样单独一个按纽检测~谢谢 我可以在注册时检测,但现在不都单拿出来检测吗?怎么办 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下面是我用的:[<a style="CURSOR: hand; " onclick="javascript:Form_Submit(Form1);" >检测名称</a>] <span id="InfoSpan" align="left" class="security-op-error"></span>function Form_Submit(theForm){ var name = theForm.name.value;//得到名称 //generate the requrl var requrl = "judge.jsp?name=" + encodeURI(name); xmlHttp.open("POST",requrl, true); xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlHttp.onreadystatechange = updateInfoDiv; xmlHttp.send(); return false;}function updateInfoDiv(){ if (xmlHttp.readyState == 4) { var retXml = xmlHttp.responseText; var resspan = document.getElementById("InfoSpan"); resspan.innerText = retXml; }} 数据挖掘是否需要那些知识,如果现在的学习来的急吗 有关JS的!! IE,我们敲回车后发生了什么?网卡、网关、DNS、路由器、web服务器…… spring连接数据库方面 这是什么错误 struts基础问题,希望大家帮忙解决下!谢谢了! applet能否异步运行? 精通JS的朋友进来看看你会不会!急呀,谢谢,一定要求个答案 URL传值问题? SSI整合报错,求大神解决 cas+shiro,自定义拦截器,第二次获取不到subject中的session信息 jsp页面交互中列表框状态如何维护 请问各位大虾怎么样才能让弹出的确认框的默认焦点在“不是”按钮上?谢谢
[<a style="CURSOR: hand; " onclick="javascript:Form_Submit(Form1);" >检测名称</a>] <span id="InfoSpan" align="left" class="security-op-error"></span>function Form_Submit(theForm)
{
var name = theForm.name.value;//得到名称
//generate the requrl
var requrl = "judge.jsp?name=" + encodeURI(name);
xmlHttp.open("POST",requrl, true); xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttp.onreadystatechange = updateInfoDiv;
xmlHttp.send(); return false;
}function updateInfoDiv(){
if (xmlHttp.readyState == 4) {
var retXml = xmlHttp.responseText; var resspan = document.getElementById("InfoSpan"); resspan.innerText = retXml;
}
}