My object structure is like this:
var test={
"id":"A",
"ChanName":"Discovery",
"LCN":10
};
This is the snippet that creates the object store:
var objectStore = db.createObjectStore('Dat', { keyPath:'test.id',autoIncrement: false});
var trans = db.transaction(["Dat"], webkitIDBTransaction.READ_WRITE);
var store = trans.objectStore("Dat");
var request=store.put(test);
When i try to add the test object i get this exception DATA_ERR: DOM IDBDatabase Exception 5. Please can you advice on what is wrong here? I am using chrome 18 to test this.The creation of object store is fine,but not able to add data