Rotem Tamir
Rotem Tamir

Reputation: 1457

Which version of firefox will support Web SQL?

I'm developing an app that needs offline storage SQL.

I try:

    if (window.openDatabase) {
        window.db = window.openDatabase("app", "", "my app db name", 1024*1024);
    }   

this works great on Chrome but doesn't work on my Firefox 3.6

What version of firefox will support openDatabase?

Upvotes: 19

Views: 24178

Answers (4)

amit kate
amit kate

Reputation: 120

Default location for WebSQL DB in case of Firefox:

C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\mlolddya.default\databases\

For Chrome:

C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\databases\

for safari:

C:\Users\username\AppData\Local\Apple Computer\Safari\Databases\

new version of FF are not using WebSQL they are moved to IndexedDB.which is good no need to give support for two different db if you dont want to give support for Safari

Upvotes: 3

Eonasdan
Eonasdan

Reputation: 7765

If you're interested to know what browsers support what you can check out Caniuse. In particular about local storage see this

Edit: Oops! I didn't realize this was a year old.

Upvotes: 3

Joe Stefanelli
Joe Stefanelli

Reputation: 135808

I believe FF is working towards implementing IndexedDB instead.

Upvotes: 7

JamesHalsall
JamesHalsall

Reputation: 13485

Mozilla have said they will never implement it according to this thread:

HTML5 IndexedDB, Web SQL Database and browser wars

Upvotes: 24

Related Questions