Thursday, March 1, 2012

localStorage

This posting suggests that one may interface with HTML localStorage like so via jQuery:

localStorage.setItem("name", "Hello World!");

document.write(localStorage.getItem("name"));

localStorage.removeItem("name");

 
 

I went to the geek lunch today and part of the conversation at my table had to do with localStorage. One may keep cookies in localStorage and one may rely on localStorage in the event of a loss of connectivity in an SOAesque failover sort of way.

No comments:

Post a Comment