在不刷新页面的情况下调用远程asp脚本(4)


      SelectArea = ArrArea
    end if    
  End Function


%>

建立文件test.asp
<%@ LANGUAGE="VBSCRIPT" %>
<%option explicit%>
<!--#include VIRTUAL="pub.asp"-->
<!--#include VIRTUAL="Sql_pub.asp"-->
<%
  Dim arrCity, arrArea, strPathInfo, strServerName, strServerPort, i, TmpStr

  strPathInfo = Request.ServerVariables("PATH_INFO")
  strServerName = Request.ServerVariables("SERVER_NAME")
  strServerPort = Request.ServerVariables("SERVER_PORT")
  if len(strServerPort) = 0 then
    strServerPort = ""
  else
    strServerPort = ":" + strServerPort
  end if
  strPathInfo = "http://" & strServerName & strServerPort & ""

  arrCity = SelectCity()
  arrArea = SelectArea(arrCity(1,0))


%>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
</head>
<script language="JavaScript" src="<%=strPathInfo%>/_ScriptLibrary/rs.htm"></script>
<script language="JavaScript">
  RSEnableRemoteScripting("<%=strPathInfo%>/_ScriptLibrary");
</script>

<body bgcolor="#FFFFFF">
<form method="post" name="select">
  <font color="#222200"> 
  <select name="City" size="1" onChange="JavaScript: Choosesection(this.form.Area,this.form.City)">
  <option value=0 selected>--选择城市--</option>
  <%for i = LBound(arrCity,2) To UBound(arrCity,2)                                                    
                        TmpStr = "<option value=" & arrCity(1,i) & ""                                                    

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/3099.html