Chapter 9. Extending the Engine

Using an object-oriented design for the Ajax engine provided us with the flexibility to extend or incorporate the code into any web application. The engine that we have created can accomplish any type of request. To make this engine extremely powerful, we can create additional objects that extend the engine’s functionality and provide us with ways of handling common situations when developing our Ajax applications.

This chapter will focus on extending the Ajax engine with two completely different types of objects. The first object that we will create is a Utilities object, which will handle all of the common front-end functionalities, such as creating HTML elements, simplifying common JavaScript functions, and ...

Get Ajax for Web Application Developers 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.