String path = request.getContextPath();
String basePath = request.getScheme() + “://”
+ request.getServerName() + “:” + request.getServerPort()
+ path + “/”;
String param = request.getParameter(“param”);
%>
//重载窗口
function resetwindow(){
if(top.location != self.location){
top.location.href = self.location.href;
return true;
}
}
$().ready(function() {
$(“#form”).validate();
});
//判断用户密码是否正确或是否被禁用
function checksubmit()
{
//得到值
var chain_no=$(“#chain_no”).val();
var pwd=$(“#user_password”).val();
var user_id=$(“#user_id”).val();
$.ajax({
type: “POST”,
url:”AjaxUpdate/AjaxUpdate_ajaxselectuserInfo”,
data:”conditionKey=”+chain_no+”&conditionValue=”+pwd+”&key=”+user_id,
success:function(message){
//判断
if(message==”成功”){
$(“#form”).submit();
}else{
alert(message);
}
}
});
}
border=”0″>
|
border=”0″> |
|||||||||||||||||||||||||||||||||||||||
未登录或账号密码错误
|
|
为什么我点击登录按钮,他不会执行ajax请求;而且alert(message)输出的还是上一个页面的所有的html的代码!!!