以前收集的一些资料---如何在不刷新页面的情况下调用远程ASP


nction Description()
    {
           this.GetEmpInfoAsArray = DoGetData;
    }
    public_description = new Description();


    function DoGetData(empName)
    {
            sql = "select * from 雇员 where [名字]=''" + empName + "''";
            rst = new ActiveXObject("ADODB.Recordset");
            rst.CursorLocation = 3;     

            rst.Open(sql, "NW");
            i = 0;
        strText = "";

            if (rst.RecordCount == 1)  {
               strText += rst.Fields("雇员ID").Value + " - " +
                          rst.Fields("尊称").Value + " " +
                          rst.Fields("姓氏").Value + " " +
                          rst.Fields("名字").Value;
               strText += "|";
         &nb
Copyright © 2008 qcode.org All Rights Reserved 编程开发 由朝夕网络维护