WebSQL API not working (undefined)

WebSQL API not working (undefined)

BY 13 Sep 2014 Web Application Development

Hello

I am having some real trouble using the WebSQL Api. Actually, I can’t use it at all. When I try to open the database, I get:

 

TypeError: ‘undefined’ is not a function (evaluating ‘window.openDatabase’)

 

I have tried calling simply openDatabase(), window.openDatabase(), no results. Seems like it’s not available at all. I have tried both my code and the code provided in tutorials:

http://download.tizen.org/misc/examples/w3c_html5/storage/web_sql_database/websqldatabase_example.html

 

This happens both on the device and the emulator.

I do have the http://tizen.org/privilege/unlimitedstorage declared.

window.webkitIndexedDB is defined and works properly… so it’s not a matter of visibility.

 

Any ideas?

 

 

 

 

 

Written by