Enhancing your application with the Google API
In the previous recipe you could see how a JavaScript library such as jQuery can be used within APEX. Other JavaScript libraries can also be used, but they need first to be downloaded and installed. To make life easier for people who intend to use the various JavaScript libraries, Google introduced the Google API. Google puts the most well known JavaScript libraries online so you can reference them now without installing them into your own APEX environment! By the way, you can also use the JavaScript libraries in other languages such as PHP or just plain HTML with JavaScript.
To demonstrate this, we will make use of the scriptaculous
library. Suppose you have the following intranet home page:
We will let the Latest news section pulsate on loading the homepage.
How to do it...
In the Application Builder, edit page 1.
In the Page section, click on the Edit icon.
In the HTML Header section, enter the following code in the HTML Header textarea:
<script...