Hello :)
I successed to create indexedDB.
And than I tried to make objStore but it wasn't working..
I want to get objStore and manage data.
this is my code.
<pre class="code">
function createDB() {
window.indexedDB = window.indexedDB
|| window.mozIndexedDB
|| window.webkitIndexedDB || window.msIndexedDB;
if (!window.indexedDB) {
window.alert("Does not support IndexedDB");
} else {
var tizenDB = {}
var request = window.indexedDB.open("TizenIndexedDB");
console.log(request); //The created indexedDB can be checked.
request.onsuccess = function(e) {
alert("success");
}
request.onerror = function(e) {
console.log(e);
}
}
tizenDB.db = event.target.result;
var objStore = tizenDB.db.createObjectStore("tizenStore", {keyPath: "key"});
console.log(objStore);
}
</pre>
My log show "tizenDB.db " is undefined.
I don't know the problem.
Please let me know.
++++
Is there no the database used in tizen web app ??
Tizen has many storage like Web Starage, IndexedDB and WEB SQL.
But,
Web Starage just has key,value. so, it is too simple using in big project,
In case of indexedDB, I heard it has some bug to transrating data between objstore.
and than Web SQL database is no longer in active maintenance and w3c does not intend to maintain it further.
.......
What kind of database that I use in tizen web app ???......
Thanks,
Jenny