Google


ADBRITE ads links
You are here: CodeIdol.com > Ajax > Head Rush Ajax > A Fight To The Finish > A Review Of Request And Response Formats

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

7.1. A review of request and response formats

Before we dive into the JSON versus XML debate, let's review the data formats we've already used in the first six chapters.

Everything in the first part of the book sent text to the server using name/value pairs.
Plain Text Requests

Plain Text Responses    PHP script
All these earlier apps got text back from the server, too.
Remember, even with POST requests in Chapter 5, we were sending plain text.
Chapter 4 was all about the DOM... no requests or responses here.


In Chapter 6, we were still sending text in our requests.
XML makes it easy for the server to send more complex responses to your requests... but
your requests are still usually better off as plain text.
Plain Text Request


XML Response             PHP script
The server finally got to say more, though, and sent XML back in its responses.


SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

You are here: CodeIdol.com > Ajax > Head Rush Ajax > A Fight To The Finish > A Review Of Request And Response Formats
   
Related tags







Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......






© CodeIdol Labs, 2007