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=""></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() {

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

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

<script src=""></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 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