File: README.md

Recommend this page to a friend!
  Classes of Karl Holz   dbh5   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: dbh5
Manipulate data in localstorage or sessionstorage
Author: By
Last change: First release

Working copy of dbh5, find any problems let me know.
Date: 2 years ago
Size: 1,125 bytes
 

Contents

Class file image Download

DBH5

DBH5 is a class for using the HTML5 browser storage, it stores the key/value pairs as key for page, value as JSON Array document. There have been some updates made since I released this file with my powertech tools, minor fixes and and an AngularJS front end to test it out. The storage limit should be 5-10Mb depending on your browser and settings

Browser Storage Options

By default this class is designed to use the localStorage, but you can override it with

> dbh5.db = sessionStorage;

Before calling a function in this class. take a look at the example used in the index.html

Coolio

Now go any play around with the tester and see all the posiblities that this lil'class can do for your project.

  • Shopping Card
  • playlists
  • client applications

I'm sure you can think of more!

Enjoy this treat, get some Java and do some Scripting ;)