Q: LocalStorage object available in iBooks?
Does anyone know if the local storage object is available in html widgets? Can we store and retrieve data in html widgets inside iBooks?
Posted on Jan 26, 2012 6:38 AM
by Rhys_Jones,Solvedanswer
Yes, the local storage object seems to be available, and saves its value between opening and closing books.
For example, in a html widget, set
localStorage.name=new Date();
and later on read
localStorage.name
which will return the date previously stored, even if you've exited the book in-between.
Posted on Jan 26, 2012 8:59 AM