易截截图软件、单文件、免安装、纯绿色、仅160KB

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(){


相关问答:

三年ASP开发开发经验,现在找工作,,,

本人有三年开发经验,现在找工作(厦门),,,有意者请联系QQ:523054271
1.5年工作经验找工作 他要多少  我要一半~~

别说三年的了...就是5年的也一抓一大把.....

俺需要用asp+access做一个进销存软件,您能做 ......

求助帮我把一段简单的PHP代码转换成ASP的

<?php
if($_SERVER['HTTP_REFERER']!=''){
  @header("Content-type:image/jpeg");
  echo file_get_contents("xlight.jpg");
}
else{
  @header("location:ht ......

asp.net 线程的问题? - .NET技术 / ASP.NET

前段时间碰到一道面试题如下:
test.aspx页面有如下代码:
 Response.Write(Test.GetDate());
Test类如下:
public class Test
{
  static string dt="";
  public static s ......

ASP.NET MVC架构发布了 - .NET技术 / ASP.NET

ASP.NET MVC架构发布了,你用了吗?
还在学习中

我也在学习。买书,听教程,看网上资料,下载例子,感觉听不错的,不过比起工厂模式,似乎逊色了点。。。欢迎到我博客互相学习

都用了5个版本了 从 PV1 到beta ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号