jquery autocomplete + asp的问题
程序运行没有出错,但就是不出结果,代码如下
----------------------------------------------------------------------------
请求的页面
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript">
function setB(){
$("#shortCode").autocomplete({
source: "ajax.asp",
minLength:1
});
};
window.onload = setB;
</script>
<body>
<label>short_code
<input type="text" name="shortCode" id="shortCode" />
</label>
<label></label>
</body>
</html>
----------------------------------------------------------------------------
服务页面 ajax.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Response.Charset = "gb2312"
Response.Write("[{label:""XHFZYD"", value:""QQ""}]")
%>