Creating a Server Access Object Module

The creation of a Server Access Object module allows all of the interaction with the XMLHttpRequest object to be wrapped and hidden from the programmer creating the BCO and VCO objects like those used in Chapter 3.

The Server Access Object module consists of one custom JavaScript object named ServerAO. The behavior of the ServerAO object is similar to Data Access Objects (DAOs) that often are used to retrieve data from a database on the back end. One major difference is that instead of a different DAO for each table, join, view, and so on in the back end, only one ServerAO is needed.

Image

TABLE 4-1. XMLHttpRequest ...

Get Oracle Database Ajax & PHP Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.