ajax传递一个参数
来源:互联网 发布:万界网络屠龙战神官网 编辑:程序博客网 时间:2024/06/09 22:49
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="js/Jquery1.7.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#txtUserName').blur(function () {
$.ajax({
type: "post",
contentType: "application/json",
url: "WebService1.asmx/ValidateUser",
data: "{username:'" + $('#txtUserName').val() + "'}",
success: function (result) {
$('#spinfo').text(result.d);
}
})
})
})
</script>
</head>
<body>
<div>
用户名<input type="text" id="txtUserName" /><span id="spinfo"></span><br />
密码<input type="text" id="txtPwd" />
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="js/Jquery1.7.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#txtUserName').blur(function () {
$.ajax({
type: "post",
contentType: "application/json",
url: "WebService1.asmx/ValidateUser",
data: "{username:'" + $('#txtUserName').val() + "'}",
success: function (result) {
$('#spinfo').text(result.d);
}
})
})
})
</script>
</head>
<body>
<div>
用户名<input type="text" id="txtUserName" /><span id="spinfo"></span><br />
密码<input type="text" id="txtPwd" />
</div>
</body>
</html>
- ajax传递一个参数
- ajax传递特殊参数
- ajax传递特殊参数
- 使用ajax传递参数
- AJAX传递参数
- ajax传递参数
- asp,ajax 传递参数分页
- ajax使用POST传递参数
- jquery ajax传递数组参数
- JQuery ajax批量传递参数
- JQuery Ajax WebService传递参数
- ajax通过post传递参数
- ajax传递多个参数
- PHP ajax页面参数传递
- ie ajax传递中文参数
- 初学ajax data参数传递
- ajax传递多个参数
- ajax传递日期参数问题
- static关键字
- linux下bluetooth编程(八)SDP层编程
- spring实例化Bean的原理
- Eclipse用svn管理Android项目问题 (转来的)
- 年度盛宴——2012年最精彩的15个 CSS3 教程
- ajax传递一个参数
- hdu4556 西山居四 Stern-Brocot Tree
- 正则表达式
- 使用AJAX返回WebService里的集合
- ▲侃侃前端性能优化
- oracle ---> ora 无效数字
- ajax传递多个参数
- 如何遍历HashMap集合类
- Qt动态显示图片(有点问题请高手指点!!)