WebKit Does HTML5 Client-side Database Storage

Written by on October 22nd, 2007 in Ajax News.

The WebKit team has implemented an implementation of the HTML 5 client side storage API which gives you an asynchronous API:

JAVASCRIPT:

  1.  
  2. var database = openDatabase(”Database Name”, “Database Version”);
  3.  
  4. database.executeSql(”SELECT * FROM test”, function(result1) {
  5.    // do something with the results
  6.    database.executeSql(”DROP TABLE test”, function(result2) {
  7.      // do some more stuff
  8.      alert(”My second database query finished executing!”);
  9.    });
  10. });
  11.  

Once you have the latest nightly, you can check out their database example and even see the tool that is available in the Web inspector:

Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/173307708/webkit-does-html5-client-side-database-storage

Leave a Reply

You must be logged in to post a comment.



Site Navigation