websqlprovider.js not found in jaydata / jaydata buck?

34 Views Asked by At

i am using jaydata in a iOS uiwebview. I try to generate a websql databse because indexddb is not supported in uiwebview. The script crashes with:

Failed to load resource: The requested URL was not found on this server. url: jaydataproviders/websqlprovider.js

There is no websqlprovider.js file in the jaydata installation. Can anybody help please?

2

There are 2 best solutions below

0
Robesz On

you should load the jaydataproviders/SqLiteProvider.js manually, then jaydata won't try to load it automatically. This should resolve the issue

0
peteinba On

Sorry my own mistake. When i want to start a indexeddb database, then:

Providername 'indexedDb' will load the [indexDb]Provider.js file automatically from dir jaydataproviders.

When i start database with:

         mydatabase = new MyDB_Context({provider: Providername, databaseName : "anyname", dbCreation: MyDB.storageProviders.DbCreationType.DropTableIfChanged, version: 1});

Sorry for this.