The AJAX Libraries API is a content distribution network and loading architecture for the most popular,
open source JavaScript libraries. By using the google.load() method, your application has high speed,
globally available access to a growing list of the most popular, open source JavaScript libraries.
This documentation is designed for people familiar with JavaScript programming and object-oriented programming concepts. There are many JavaScript tutorials available on the Web.
The AJAX Libraries API provides your applications with stable, reliable, high speed, globally available access to all of the most popular, open source JavaScript libraries.
Your application can use our very flexible loader google.load() or direct, path based access to the scripts.
The most powerful way to load the libraries is by using google.load() to name a library and your prefered version. E.g.:
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
google.load("prototype", "1.6.1.0");
google.load("scriptaculous", "1.8.3");
google.load("mootools", "1.2.4");
google.load("dojo", "1.3.2");
google.load("swfobject", "2.2");
google.load("yui", "2.8.0r4");
google.load("ext-core", "3.0.0");
As you can see in the code snippets above, the first argument to google.load is the name of a library. The second argument is a version specification.
The complete list of Ajax libraries is a growing collection of the most popular, open source JavaScript libraries.
The versioning system allows your application to specify a desired version with as much precision as it needs. By dropping version fields, you end up wild carding a field. For instance, consider a set of versions:
Specifying a version of "1.8.2" will select the obvious version. This is because a fully specified version was used. Specifying
a version of "1.8" would select version 1.8.4 since this is the highest versioned release in the 1.8 branch.
For much the same reason, a request for "1" will end up loading version 1.9.1. Note, these versioning semantics work
the same way when using google.load and when using direct script urls.
Each library is available via both google.load() and directly, via <script/> tag. The google.load() approach offers
the most functionality and performance. In the sections that follow, we document all of the libraries that are available. For each library we list its name (as in the name
used in google.load()), all of the versions that we have on hand for the library, etc.
google.load("jquery", "1.3.2");google.load("jquery", "1.3.2", {uncompressed:true});google.load("jqueryui", "1.7.2");google.load("jqueryui", "1.7.2", {uncompressed:true});jquery. Before loading this module, you must load jquery.
e.g.:
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
google.load("prototype", "1.6.1.0");google.load("scriptaculous", "1.8.3");Prototype. Before loading this module, you must load Prototype.
e.g.:
google.load("prototype", "1.6");
google.load("scriptaculous", "1.8.3");
google.load("mootools", "1.2.4");google.load("mootools", "1.2.4", {uncompressed:true});google.load("dojo", "1.3.2");google.load("dojo", "1.3.2",
{uncompressed:true});google.load("swfobject", "2.2");google.load("swfobject", "2.2", {uncompressed:true});google.load("yui", "2.8.0r4");google.load("yui", "2.8.0r4", {uncompressed:true});google.load("ext-core", "3.0.0");google.load("ext-core", "3.0.0", {uncompressed:true});google.load("chrome-frame", "1.0.0");google.load("chrome-frame", "1.0.0", {uncompressed:true});