Use JavaScript framework through Google Ajax libraries API

Source: Internet
Author: User

 

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>

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.