ajax本地运行正常,上传到服务器后没有任何结果
程序如下:cu.asp<%Response.Buffer=TrueResponse.ExpiresAbsolute=Now()-1Response.Expires=...
程序如下:cu.asp<%Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "No-Cache"%><!--#include file="conn.asp"--><%name=request.querystring("name")Set rs = Server.CreateObject ("ADODB.Recordset")sql = "Select * from com where comID="&name&""rs.Open sql,conn,1,3response.charset=gb2312'==============if rs.eof and rs.bof then response.write("会员ID错误")else response.write escape(rs("comtel"))&";"&escape(rs("comname"))end if%>t1.htm<script language="javascript" type="text/javascript">var xmlHttp = false;try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { xmlHttp = false; }}if (!xmlHttp && typeof XMLHttpRequest != 'undefined') { xmlHttp = new XMLHttpRequest();}function callServer() { var u_name = document.getElementById("u_name").value; if ((u_name == null) || (u_name == "")) return; var url = "cu.asp?name=" + escape(u_name); xmlHttp.open("GET", url, true); xmlHttp.onreadystatechange = updatePage; xmlHttp.send(null); }function updatePage() { if (xmlHttp.readyState < 4) { test1.innerHTML="loading..."; } if (xmlHttp.readyState == 4) { var response = xmlHttp.responseText; var arr=response.split(";"); document.getElementById('dt').value=arr[0]; document.getElementById('dt2').value=unescape(arr[1]); }</script><form name="form1" action="" method="post" autocomplete="off">用户名: <input name="u_name" type="text" id="u_name" onChange="callServer();" value="请输入会员ID" /> 联系电话<input name="dt" type="text" id="dt" /> 注册日期<input name="dt2" type="text" id="dt2" /></form>现在出现的问题如题!~大家帮我看看是程序的问题,不审服务器有问题?先在此谢过了解`
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询