ASP+AJAX的问题
VBScript code:
Dim FoundErr,MsgErr
FoundErr = true
username=request.QueryString("userName")
password=request.QueryString("userPwd")
MsgErr = ""
if username = "" then
MsgErr = MsgErr & "用户名为空"
End if
if password = "" then
MsgErr = MsgErr & "密码为空"
End if
if FoundErr = true then
Response.write MsgErr
Else
Response.write "OK"
End if
JScript code:
$.ajax({
type:"GET",
url:"checkLogin.asp?userName="+escape(userName)+"&userPwd="+escape(userPwd)+"&time="+new Date().toString(),
success:function(msg){
alert(msg)
}
})
直接运行ASP页面输出"用户名为空密码为空"
那么JS部分
当FoundErr为true 时 msg应该为"用户名为空密码为空",可是msg="",为False时msg=OK.
这说明当FoundErr为true 时 JS获取不到ASP页面输出"用户名为空密码为空",问题出在哪里呢?
那个贴个全的
JScript code:
$(document).ready(function(){
$("#login").click(function(){
相关问答:
owc11满足不了要求,有没有更好点的,asp能调用的
目前没发现,帮你顶!
应该没有了吧
自已写。顶
帮顶,关注!
好像就这个了,目前还没看到其他得上市使用。。。帮顶!
自己再顶一下
好像是没有 ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......
第14章 的树型菜单的例子不能在IE中正常显示(树的结构可以展开,但展开后再点击就不能收缩了),但能在谷歌浏览器中使用,有看此书的朋友能指点下吗?
好贴 呵
dfgfgfgffffff
谢谢。
......