开发者

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 grea开发者_StackOverflow社区t on Chrome but doesn't work on my Firefox 3.6

What version of firefox will support openDatabase?


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

HTML5 IndexedDB, Web SQL Database and browser wars


I believe FF is working towards implementing IndexedDB instead.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜