AJAX - Methods


AJAX - Methods

      • abort, 
      • getAllResponseHeaders, 
      • getResponseHeader, 
      • open, 
      • send,
      • setRequestHeader.

abort()

  • Cancels the current request.

getAllResponseHeaders()

  • Returns the complete set of HTTP headers as a string.

getResponseHeader( headerName )

  • Returns the value of the specified HTTP header.

open()

  • The method parameter can have a value of "GET", "POST", or "HEAD". Other HTTP methods, such as "PUT" and "DELETE" (primarily used in REST applications) may be possible.

send( content )

  • Sends the request.

setRequestHeader( label, value )

  • Adds a label/value pair to the HTTP header to be sent.