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都混不到饭吃了 晕 晕
我的意思是多学一门技术没啥错误 ......
owc11满足不了要求,有没有更好点的,asp能调用的
目前没发现,帮你顶!
应该没有了吧
自已写。顶
帮顶,关注!
好像就这个了,目前还没看到其他得上市使用。。。帮顶!
自己再顶一下
好像是没有 ......
原先有一个项目是用asp写的,因为系统扩展,我想添加一些模块或网页,想用asp.net写,然后在asp中redirect到aspx文件中,请问是否可以做到,如何在IIS中进行配置。
这样可以省去很多工作量,因为系统以前是别人写的 ......
ASP.NET MVC架构发布了,你用了吗?
还在学习中
我也在学习。买书,听教程,看网上资料,下载例子,感觉听不错的,不过比起工厂模式,似乎逊色了点。。。欢迎到我博客互相学习
都用了5个版本了 从 PV1 到beta ......
<script type="text/javascript" src="js/Dialog.js"></script>
<script type="text/javascript">
function zOpenD()
{
va ......