openDatabase throws error SECURITY_ERR: DOM Exception 18
The Electric Plum website says the emulators support Web SQL and the iPhone and iPad configurations have an "HTML 5 Databases" option for Web SQL and IndexedDB APIs. When trying to use openDatabase the error SECURITY_ERR: DOM Exception 18 is thrown. For example calling
var Mydb = openDatabase('mydb', '1.0', 'my first database', 2 * 1024 * 1024);
shows Uncaught Error: SECURITY_ERR: DOM Exception 18 in the developer tools console.
What must be changed to make this work?
Thank you.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Shaun Sullivan on 02 Oct, 2012 05:27 PM
Hi we have a bug in settings. It is doing the opposite of the "HTML5 Databases" setting :(
For now, you should be able to work around that by un-checking that setting.
Sorry about that, we'll be sure to fix it in the next update.
2 Posted by Davin McCoud on 02 Oct, 2012 06:40 PM
Thank you. Turning the setting off worked for now.