Comments on: Storing Data the Simple HTML5 Way (and a few tricks you might not have known) https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: pankaj https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-1982516 Thu, 18 Jun 2015 15:47:35 +0000 http://html5doctor.com/?p=3600#comment-1982516 I am working on one opensource project by which we can easily deal with local storage. Right know i am working on this project if any one want work on this project he/she can get code from my git repo.

https://github.com/pankajbisht/openDB

]]>
By: Neel https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-1811872 Sun, 29 Mar 2015 17:12:58 +0000 http://html5doctor.com/?p=3600#comment-1811872 Hi. Thanks for this awesome post. But can you help me about how can I retrieve that data from the sessionStorage (like using $(document).sessionStorage() ) ……… in another jsp/html file????

]]>
By: Gio https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-1589226 Wed, 18 Feb 2015 05:02:44 +0000 http://html5doctor.com/?p=3600#comment-1589226 I’m new to JS and I’m trying hard to wrap my head around JSON and localStorage. I have an form that allows for 21 distinct text inputs. I’m trying to pass the 21 inputs to a second web page that will process and manipulate the data. Thanks to this article, I’m starting to understand that localStorage is a single container like a bucket to store data. I mistakenly thought that I could create 21 different localStorage containers for my form data. It seems to not work that way at all.

At least now, I get that I have to store all 21 entries into one bucket in the first html page and then pull them out from that bucket in the second html page.

Thanks!

]]>
By: HoangND https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-1444074 Thu, 15 Jan 2015 07:26:39 +0000 http://html5doctor.com/?p=3600#comment-1444074 Hi, I wrote a simple caching lib. It support both localStorage and in memory: Cache your data with Javascript using cacheJS

Here are simple usages:

cacheJS.set({ blogId: 1, type: ‘json’ })
cacheJS.removeByKey({ blogId: 1, type: ‘json’ })

cacheJS.on(‘cacheAdded’, function(){ // do something });

]]>
By: floyd https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-37474 Tue, 20 Aug 2013 22:55:16 +0000 http://html5doctor.com/?p=3600#comment-37474 “Note that as IE8 has support, if you don’t want to use onstorage you’ll want to double up your event listeners with attachEvent.”

What in the world does “you’ll want to double up your event listeners with attachEvent.” can you please show some code to do this.

Thanks,

]]>
By: william https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-35813 Tue, 02 Jul 2013 04:49:17 +0000 http://html5doctor.com/?p=3600#comment-35813 hi, can i store some data to chache memory of google crome. e.g i want to save my name with my website into the chache memory of google crome using php code. Is it possiable. plz help.

]]>
By: Halcyon https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-34522 Wed, 15 May 2013 18:52:44 +0000 http://html5doctor.com/?p=3600#comment-34522 Good article, helped me get started on using web storage quickly!
Thanks.

]]>
By: Mike Jabber https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-32942 Sun, 31 Mar 2013 13:55:18 +0000 http://html5doctor.com/?p=3600#comment-32942 There is a new javascript library called cupcake.js which supports both session and local storages. You can find it from http://www.rivindu.com/p/cupcakejs.html

]]>
By: Nitin https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-29152 Mon, 05 Nov 2012 09:03:18 +0000 http://html5doctor.com/?p=3600#comment-29152 Hello Remy,
I am a Newbie to web storage…could you please help me to figure out what kind of data or item that we can store locally……….like if i have same pictures,videos and audios……..then how can i store them locally.

Thanks

]]>
By: Travis https://stevefaulkner.github.io/html5doctored/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/#comment-28855 Sat, 18 Aug 2012 20:02:55 +0000 http://html5doctor.com/?p=3600#comment-28855 Can’t figure out why this is not working? please could someone share some knowledge and help me out. Thanks.

Trying to store info locally using php to dynamically create new storage variables per input. I can get it to work with the first div that was dynamically created using php but it will not work for the other divs that were created.

<div id="projectFolder" class=" hidden">

function saveEdits_() {

//get the editable element
var editElem_ = document.getElementById("edit_");

//get the edited element content
var Version = editElem_.innerHTML;

//save the content to local storage
localStorage.userEdits_ = Version;

//write a confirmation to the user
document.getElementById("update_").innerHTML="Edits saved!";

}
function checkEdits() {

//find out if the user has previously saved edits
if(localStorage.userEdits_!=null)
document.getElementById("edit_").innerHTML=localStorage.userEdits_;
}

<!--

-->
<div id="edit_" contenteditable="true" style="color:#222222;">
Here is the element's original content

<input type="button" value="save my edits" onclick="saveEdits_()"/>

<div id="update_" style="color:#000;"> Edit the text and click to save for next time

]]>