AJAX ON THE WIRE
Looking at a traditional Web 1.0 application on the wire was typically a boring exercise.
One would generally see a large chunk of HTML come down from the server, followed
by a few images and perhaps a little bit of JavaScript glue for menus. In AJAX applications,
this ratio has changed significantly. While large chunks of HTML and a large number
of images are still included, the amount of JavaScript sent down by the server has
grown by leaps and bounds. Gone are the days where JavaScript is used simply as a glue
to hold together a small static part of the application, such as a drop-down menu??”
JavaScript is now the bulk of the application itself.
This has genuinely changed how an application looks on the wire, because an AJAX
application, unlike a traditional Web1.0 application, is not restricted to sending data in
the name-value pair format of an HTTP POST. With the freedom of the XMLHttp
Request object, an application may communicate with the server in any format it chooses.
148 Hacking Exposed Web 2.0
In an amusing case of misdirected naming, this means that Asynchronous JavaScript and
XML applications may be written involving neither JavaScript nor XML.
Pages:
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285