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程序员了,一面试,都要.NET或者PHP,JSP的,哎,,,,ASP这么不值钱吗,学习ASP是个错误吗
没啥错误 一句话:技多不压身
靠ASP都混不到饭吃了 晕 晕
我的意思是多学一门技术没啥错误 ......
本人有三年开发经验,现在找工作(厦门),,,有意者请联系QQ:523054271
1.5年工作经验找工作 他要多少 我要一半~~
别说三年的了...就是5年的也一抓一大把.....
俺需要用asp+access做一个进销存软件,您能做 ......
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
就是类似以上的在线测试系统,需要有一个后台的,语言是asp的,数据库是access的,还需要能在后台对信息进行添删改查的。谢谢各位了。。。
程序真的很多,不知 ......
原先有一个项目是用asp写的,因为系统扩展,我想添加一些模块或网页,想用asp.net写,然后在asp中redirect到aspx文件中,请问是否可以做到,如何在IIS中进行配置。
这样可以省去很多工作量,因为系统以前是别人写的 ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......