The document discusses the evolution of HTML5 and new web technologies like Web Workers, Web Storage, Web Databases, and Cache Manifests that allow web applications to work offline. It then introduces the Alexing Framework for building web applications using these HTML5 features with a backend database and synchronization between the client and server through a middleware layer. The framework aims to provide an architecture and APIs for developing offline-first applications using HTML5 technologies.
15. Web Database
DB
1 DB
DB
Browser
exampleA.com exampleB.com
DB1 DB1
Table1 DB1 Table1 DB1
Table1 Table1
Table1 Table1
16. Web Database
API API
API
var db = openDatabase(...)
db.transaction(function(tx) {
tx.executeSql(“...”, [...],
function onSuccess(tx, results) {
...
},
function onError(tx, error) { ...}
});
API
var db = openDatabaseSync(...)
db.transaction(function(tx) {
var results = tx.executeSql(“...”);
...
18. Web Storage
Web Database
LocalStorage
SessionStorage
19. Web Storage
Web Database Web Storage
localStorage sessionStorage
// localStorage/sessionStorage
//
localStorage.setItem(“key”, “value”);
var val = localStorage.getItem(“key”);
//
localStorage.key =“value”;
var val = localStorage.key;
42. Alexing Framework
•
•
•
•
class
Cloud
Greeting
Java Class
DB
Middleware
class Alexing
Client Greeting
Sync Engine
JavaScript
Class DB
43. Alexing Framework
•
•
•
•
class
Cloud
Greeting
Java Class
DB
Middleware
class Alexing
Client Greeting
Sync Engine
edit
Application JavaScript
Class DB
retrieve