Google Gears

With all the commotion around Appollo I forgot about another key player in the field: Google. Today they opened up the beta of Google Gears, a solution to run webapplications without the need of an internet connection. They achieve this by the means of a browser extension which is availlable for Firefox 1.5+ (OSX, Linux, Win) and IE 6+.

When accessing a gears enabled site the extension asks permission to store data locally:

Allow access

The fun part is in the fact that you can query this database using javascript using full flexed SQL:

JAVASCRIPT:
  1. // Get the 3 most recent entries. Delete any others.
  2.     var rs = db.execute('select * from Demo order by Timestamp desc');
  3.     var index = 0;
  4.     while (rs.isValidRow()) {
  5.       if (index <3) {
  6.         recentPhrases[index] = rs.field(0);
  7.       } else {
  8.         db.execute('delete from Demo where Timestamp=?', [rs.field(1)]);
  9.       }
  10.       ++index;
  11.       rs.next();
  12.     }
  13.     rs.close();

(full source availlable here)

I really think this is what is needed for the next generation of web applications; I for instance would like to have a look a mail stored in my GMail account or items in my NetVibes homepage!

As soon as I got some time on my hands I'll give it a go, can't wait!


0 Responses to “Google Gears”

  1. No Comments

Leave a Reply





About

Welcome to the weblog of Peter Maas. Here you'll find various posts related to stuff I like (like my kids and espresso) and stuff I do (like developing software).

JavaOne 2008 Pictures

golden_gate_warning_sign bonen_maler heart Stretched Limo brug Acme Anvile at CommunityOne Keynote stoomlocomotief (bw) Picture 2 IMG_4606.JPG pub Sjoerd achter de computer Java + You on a cab Danielle op de bruggen van Beeld en Geluid IMG_4651.JPG IMG_4636.JPG War Room - Diagrams Hotel room sjoerd op klimrek zo_twit_ik_erbij
View more photos >

Categories



Meld u aan voor PayPal en begin direct met het accepteren van creditcardbetalingen.