knadh / localStorageDB

A simple database layer for localStorage and sessionStorage for creating structured data in the form of databases and tables
http://nadh.in/code/localstoragedb
814 stars 128 forks source link

IE7-8 commit issue #39

Closed fikrifirat closed 10 years ago

fikrifirat commented 10 years ago

The library does not seem to retain commit on IE7-8 After commit, the rowCount increases, but refresh causes it to become emptied.

knadh commented 10 years ago

Hello. Are you running this locally (file://) and not on a web server?

fikrifirat commented 10 years ago

Nope, I am running it on a web server, within my script

fikrifirat commented 10 years ago

lib.commit() always returns false on IE8

fikrifirat commented 10 years ago

My bad, the problem was due to the 'compatibiltiy view'

Then it behaves like IE8, which supports localStorage In compatibility view, IE uses IE7 engines, which does not support localStorage, although the API was released 3 years before IE8, dammit Microsoft! dammit IE domination in the enterprise!

Sorry for labeling this as an issue, thanks for your help and contributions, your works have helped a lot!