The Google AJAX Libraries API allows to include most popular javascript libraries into web application with correctly setting cache headers and up to date with bug fixes.
By using google.load() method we can include most popular, open source JavaScript libraries.
Google AJAX Libraries has collection of following libraries,
- jQuery
- jQuery UI
- Prototype
- script.aculo.us
- MooTools
- Dojo
- Ext Core
- Yahoo! User Interface Library (YUI)
- Ext Core
- Chrome Frame
How to load libraries
To use API we need to add API library as,
<script src="http://www.google.com/jsapi"></script>
google.load() method is used to load library into application as,
<script type="text/javascript">
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
google.load("prototype", "1.6.1.0");
google.load("scriptaculous", "1.8.2");
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");
</script>
e.g.
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1");
</script>
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.