Prev | Current Page 499 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

AJAX is often cited in the context
of Web 2.0 (http://en.wikipedia.org/wiki/Web_2) as being one of the technologies that allows
399
C H A P T E R 1 3
for creating next-generation web sites, which provide a friendly environment that facilitates
online information sharing and collaboration.
Technically, the only ???new??? thing about AJAX is the name. The technologies required to
create AJAX web applications have been around for a while. To perform asynchronous server
calls (send server requests in the background), we use the XMLHttpRequest object of JavaScript
(together with a few other lesser-known techniques). To update the visitor??™s page in response
to the data retrieved from the server, we use the Document Object Model (DOM) eventually
together with Cascading Style Sheets (CSS) for a modern presentation layer. And to encode
the information passed back and forth from the server, XML (the format implied by the AJAX
acronym) or other data formats can be used, with a popular alternative to XML being JavaScript
Object Model (JSON). We??™ll discuss each of these shortly, but first we??™ll show a visual representation
of how an AJAX-enabled web page works. See Figure 13-1.
Figure 13-1. Asynchronous server call using AJAX
JavaScript
JavaScript is a programming language supported by all modern web browsers, which makes it
ideal for implementing various features at the client (web browser) level.


Pages:
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511
zasady pokera poker Kotły CO wentylacja pozycjonowanie