Summary

With the use of the XMLHttpRequest object, dynamic calls to the server can easily be done. Such calls can retrieve simple HTML text data as seen in these examples. This HTML can be inserted directly into a page for display. This allows a single page to be dynamic without the use of the cumbersome iframes used in Chapter 3.

If the XMLHttpRequest object is wrapped using a modular object-oriented approach, its use becomes even easier. Now the writer of the BCO and VCO objects need not know how the data is even being retrieved. The simple steps for creating connectivity listed in Chapter 3 still apply here:

Image Add a key/value pair to the acceptable ...

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.