The module we created in the last chapter used the theme system to provide user‑interface elements for our Philosophy Quotes module. In this chapter, we will pick up where we left off, and we will take steps toward a richer user interface.
In this chapter, we will use Drupal's JavaScript libraries (including the popular jQuery library) to add client-side features to the Philosophy Quotes module. We will also use AJAX (Aysnchronous JavaScript and XML) technology to dynamically change page contents without having to do a full page reload.
Here are some of the items we will cover while working on this module:
Using the Drupal and jQuery JavaScript libraries
Adding new locations (URLs) using
hook_menu()
Building a JSON (JavaScript Over the Network) service
Fetching content using AJAX/JSON queries