Created
November 24, 2011 14:13
-
-
Save jensarps/1391434 to your computer and use it in GitHub Desktop.
IDBWrapper tutorial, step 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>IDBWrapper Tutorial, Step 1</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="IDBStore.js"></script> | |
<script type="text/javascript" src="tutorial.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var customers = new IDBStore({ | |
dbVersion: 1, | |
storeName: 'customer', | |
keyPath: 'id', | |
autoIncrement: true, | |
onStoreReady: function(){ | |
console.log('Store ready!'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment