Generally, Ajax is HTML、JavaScript™、DHTML and DOM

1, XMLHttpRequest :
As a result of the browser war several years ago, we should create it's instance as follows:
 1Study of AJAX            var xmlHttpObject = null;
 2            }
The function it provides:
  • open():建立到服务器的新请求。
  • send():向服务器发送请求。
  • abort():退出当前请求。
  • readyState:提供当前 HTML 的就绪状态。
  • responseText:服务器返回的请求响应文本。

     

     1,

    PS:

    1Study of AJAX//queryString(arg) format the args to xxx&xxx&xxx..
    2Study of AJAXrequest.send( this.queryString(requestParams) );


    Also, we can use ScriptManager & This is more easy, the folowing is a sample use WebService:

     1Study of AJAX        <asp:ScriptManager ID="ScriptManager1" runat="server">
     2Study of AJAX            <Services>
     3Study of AJAX                <asp:ServiceReference Path="EmployeeService.asmx" />
     4Study of AJAX            </Services>
     5Study of AJAX        </asp:ScriptManager>
     6Study of AJAX        
     7>

    The Web Service, for example:

     1Study of AJAXnamespace AspNetAjaxOverview
     2}



     

    相关文章: