Download Ajax for Web Application Developers (Developer's Library) by Kris Hadlock PDF
By Kris Hadlock
Read Online or Download Ajax for Web Application Developers (Developer's Library) PDF
- Real world ASP.NET best practices
- Pro PHP XML and Web services
Extra resources for Ajax for Web Application Developers (Developer's Library)
SetRequestHeader("label", "value"); By setting the request header, you are adding, deleting, overriding, or replacing the default value of the HTTP request header on the server during that particular request. If a header is not well formed, it is not used and an error occurs, which stops the header from being set. The getResponseHeader method takes a header label as the parameter, which is used to get specific data from that header. getAllResponseHeaders(); 17 18 Chapter 2 The Request The getAllResponseHeaders method returns all the headers from the response, which varies depending on the server that is responding.
Send(content) Sends an HTTP request to the server and receives a response. SetRequestHeader("label", "value") Specifies the value of an HTTP header based on the label. Retrieves the values of all the HTTP headers. These two tables might look like they have only a small number of options, but as you will find in the following chapters, they pack a lot of power when used with back-end code, a database, and a dynamic front end. This section will demystify asynchronous data transfers before we begin to dive into coding the objectoriented Ajax engine.
9). responseText+")"); } } As we covered in the XML section of this chapter, the checkReadyState method is used for two different purposes—checking that the response has been completely loaded, and displaying a loading message to the user in any HTML element that is specified as the parameter. This object can then be used to target any values that were added to the object during the evaluation or data parsing. 10). category[i] +"