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


sea_lion Greenland Community One Keynote javaone2008 keynote Hotel room smashmouth Joshua Bloch at JavaOne2008 Acme Anvile at CommunityOne Keynote golden_gate_warning_sign alcatraz Golden Gate Stage being build in the nearby park Scribbled Sun Logo Charles Nutter & Guillaume Laforge Cable Car line Stretched Limo javaone 2008 goodybag Tim Bray introducing the (J)Ruby panel Rudie Moscone Center - JavaOne
View more photos >

Categories



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