11-19-2012 12:48 AM
I'm building a WebWorks app with bbUI.js for BB10 and I'm running into problems when I want to retrieve items from localStorage. Storing them is no problem. Here is my architecture:
The various register() functions do a localStorage.setItem() call, which works (i.e. the values are being set). However, in certain cases parts of objects stored in localStorage need to be updated, so this object needs to be retrieved first, updated and then stored again. Unfortunately localStorage.getItem() calls do not return the value which is stored in localStorage.
So, how should this be done?
Solved! Go to Solution.
11-19-2012 09:15 AM
Have you tried using Web Inspector to make sure that the variables you're setting into localStorage are actually set? Here's some documentation on Web Inspector.
11-19-2012 11:31 AM
Yes Chad, the variables are being set.
It's the same problem as this one: http://stackoverflow.com/questions/2010892/storing