In chrome, all the rules in Firefox
openDatabase is not defined
Googled this article https://hacks.mozilla.org/2010/06/comparing-indexeddb-and-webdatabase/
How much I understood FF does not want to support Sql?
Error code on FF
try { var db = openDatabase('chatDb', '1.0', 'Db client', 5 * 1024 * 1024); db.transaction(function (t) { t.executeSql('CREATE TABLE IF NOT EXISTS LOGS (id UNIQUE, log)'); //t.executeSql("DROP TABLE CHAT"); t.executeSql("CREATE TABLE IF NOT EXISTS CHAT ('id' INTEGER PRIMARY KEY ASC, 'name', 'message','groupe_all' TINYINT(1))"); }); db.transaction(function (t) { t.executeSql("SELECT * FROM CHAT", [], function (t, result) { for (var i = 0; i < result.rows.length; i++) { console.log(result.rows.item(i)); } }, null); }); } catch (exp) { //console.log(exp); }
sql? Everything works there, only the index DB is called - Alexey ShimanskyindexedDB, like withwebSQL, using the same methods, or even think that this is the same thing. And these are completely different bases. In chrome, a new opera (which is on the webkite), safaris have to work withwebSQL, and in farfox indexedDB is used, in which the working methods are slightly different - Alexey Shimansky