Saving files locally using IndexedDB

Saving files locally using IndexedDB (Windows).

 

      if (!window.indexedDB) {
        if (window.mozIndexedDB) {
          window.indexedDB = window.mozIndexedDB;
        }
        else if (window.webkitIndexedDB) {
          window.indexedDB = webkitIndexedDB;
          IDBCursor = webkitIDBCursor;
          IDBDatabaseException = webkitIDBDatabaseException;
          IDBRequest = webkitIDBRequest;
          IDBKeyRange = webkitIDBKeyRange;
          IDBTransaction = webkitIDBTransaction;
        }
        else {
          document.getElementById('bodyElement').innerHTML = "<h3>IndexedDB is not supported - upgrade your browser to the latest version.</h3>";
          return false;
        }
      } // if
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s