I'm using ydn-db to build a test app that can work offline in mutliple borwsers and devices.
My first option was to use indexedDB but then I realised that not all browsers and devices support it.
So, after some research I decided to move to ydn-db.
I'm initializing the db by doing this:
var dbSchema = {
version: DB_VERSION,
//autoSchema: true,
stores: [{
name: DB_STORE_USERS_NAME,
autoIncrement: false, // optional.
indexes: [{
name: 'login', // optional
keyPath: 'login',
unique: true,
multiEntry: false
}]
}, {
name: DB_STORE_REPOS_NAME,
autoIncrement: false, // optional.
indexes: [{
name: 'userid', // optional
keyPath: 'owner.id',
unique: false
}]
}]
};
db = new ydn.db.Storage(DB_NAME, dbSchema);
This works fine in chrome, but when I test it in ie9 I get the following error:
SCRIPT5007: Unable to get value of the property 'XMLDocument': object is null or undefined.
Do you have any clue of what can be the issue here?
I'm using the last version of ydn-db as it is in the site http://dev.yathit.com/ydn-db/downloads.html.
I'm downloading the following modules: IndexedDb, WebSql, Webstorage, Userdata, Query