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:
-
-
var database = openDatabase(”Database Name”, “Database Version”);
-
-
database.executeSql(”SELECT * FROM test”, function(result1) {
-
// do something with the results
-
database.executeSql(”DROP TABLE test”, function(result2) {
-
// do some more stuff
-
alert(”My second database query finished executing!”);
-
});
-
});
-
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
