Stefan Petre

Google anunta AJAX Libraries API

Azi Google a anuntat un nou serviciu pus la dispozitia dezvoltatorilor web: AJAX Libraries API. Pe scrut ofera posibilitatea de a incarca librarii JavaScript populare direct de pe serverele Google, in mod asemanator cum au facut Yahoo cu YUI si Dojo fundation si AOL cu libraria DOJO. Comunicatul puncteaza urmatoarele beneficii:

Foarte frumos si absolut adevarat. Totusi sunt ceva probleme:

Sincer imi pare putin peste mana sa folosesc

<script src="http://www.google.com/jsapi"></script>
<script>
  // Load jQuery
  google.load("jquery", "1");

  // on page load complete, fire off a jQuery json-p query
  // against Google web search
  google.setOnLoadCallback(function() {
    $.getJSON("http://ajax.googleapis.com/ajax/...callback=?",

      // on search completion, process the results
      function (data) {
        if (data.responseDate.results &&
            data.responseDate.results.length>0) {
          renderResults(data.responseDate.results);
        }
      });
    });
</script>

pentru a incarca ce am nevoie. In comunicat se specifica si o metoda alternativa de incarcare a librariilor

<script src="http://ajax.googleapis.com/ajax/.../prototype.js"></script>

, dar nu apare nimic pe situl oficial.

Cu siguranta ca vor fii ceva valuri si o sa fie foarte interesant de urmarit discutiile respective. O fraza din comunicat mi-a atras atentia; spune multe despre ce isi permite Google:

I want to acknowledge the other work that has been done here. Some libraries such as jQuery and Dean Edwards Base were already kind of doing this by hot linking to their Google Code project hosting repository. We thought this was great, ...

Comentarii (0)

Nu sunt inca comentarii.

Adauga comentariu
* Campurile marcate sunt obligatorii
eyecon.ro is using cookies to personalise content and ads, to provide social media features and to analyse our traffic. I also share information about your use of my site with my social media, advertising and analytics partners.See details

By continuing to browse the site you are agreeing to my use of cookies. ✔ Continue