Revision: 47005
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 29, 2011 16:36 by cmndo
Initial Code
/* * This Datalton object can be used to store strings or objects. */ var Datalton = function(){ //private code if (typeof(localStorage) == 'undefined' ) { return false; } //public return { set:function(prop, val){ localStorage.setItem(prop, JSON.stringify(val)); }, get:function(prop){ return JSON.parse(localStorage.getItem(prop)); }, remove:function(prop){ localStorage.removeItem(prop); } } }();
Initial URL
www.digitalsurgeons.com
Initial Description
Initial Title
Local Storage HTML5 Wrapper
Initial Tags
javascript, data, mobile
Initial Language
JavaScript