AJAX_JQuery的ajax的用法在asp中使用$.ajax()实现,复制代码 代码如下: % respons
<html>
}
cmd = checkstr(request("cmd"),2)
set rs=server.CreateObject("adodb.recordset")
});
</head>
</body>
%>
</form>
复制代码 代码如下:
response.write "]}"</html>
<!--#include file="../../functions/dofunction.asp"-->
if cmd="loadteacher" then
//var odata = $.parseJSON(json);
url:"ajaxtest.asp?cmd=loadteacher",
rs.open sql,conn,1,3
$("#btn1").click(function(){
sql="select teacher_id,name from Edu_Person"
});
<!--#include file="../../conn/conn.asp"-->
response.write "{""data"":["
<%
response.CacheControl="no-cache"
复制代码 代码如下:
<select><body>
<title>无标题文档</title>
<!--<input type="hidden" value="loadteacher">-->
if i<rs.recordcount then response.write ","
<!--#include file="../../fqdb/admin/website.asp"-->
}
<option value="请选择"></option>
var data = json.data;
i = i + 1
<%
dataType:"json",
<head>
<!--<input type="submit" value="提交">-->
i = 0
response.Charset = "gb2312"
</select>
$.ajax({
loop
<!--#include file="../psw.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
%>
response.End()
</script>
response.Expires=-1
<form method="post" action="ajaxtest.asp">
<!--#include file="../../functions/showfunction.asp"-->
//alert("click");
<input type="button" value="加载老师">
do until rs.eof
success:function(json){
end if
});
$(document).ready(function(){
<script type="text/javascript">
<script type="text/javascript" src=""></script>
response.write "{""Id"":"&rs("teacher_id")&",""Name"":"""&rs("name")&"""}"
document.writeln(data[i].Name);
rs.movenext()
相关热词: jquery
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://www.juheyunku.com/jq/ui/5534.shtml
