Google Ajax libraries API: http://code.google.com/apis/ajaxlibs/
Google Ajax libraries API is Google's hosting for popular JavaScript frameworks. You can directly use them without uploading them to your server. Currently, the following JavaScript frameworks are supported:
- Jquery
- Jquery UI
- Prototype
- Script. aculo. Us
- Mootools
- Dojo
- Swfobject
- Yahoo! User Interface library (Yui)
- EXT Core
- Chrome frame
The following example uses the Google Ajax libraries API:
<MCE: script src = "http://www.google.com/jsapi" mce_src = "http://www.google.com/jsapi"> </MCE: SCRIPT> <br/> <MCE: Script Type = "text/JavaScript"> <! -- <Br/> // load jquery <br/> Google. load ("jquery", "1.3.2"); </P> <p> // on page load complete, fire off a jquery JSON-P query <br/> // against Google Web Search <br/> Google. setonloadcallback (function () {<br/> $. getjson ("http://ajax.googleapis.com/ajax/services/search/web? Q = Google & amp; V = 1.0 & amp; callback =? ", </P> <p> // on search completion, process the results <br/> function (data) {<br/> If (data. responsedata. RESULTS & <br/> data. responsedata. results. length> 0) {<br/> var Results = data. responsedata. results; </P> <p> for (VAR I = 0; I <results. length; I ++) {<br/> // display each result however you wish <br/> alert (results [I]. titlenoformatting); <br/>}</P> <p >}); <br/> }); <br/> // --> </MCE: SCRIPT>