title: Can you pass Arrays using window.localStorage in Phonegap?
body: <p>Currently, I'm trying to pass a multidimensional array in Phonegap between two pages with window.localStorage. In main.js, I use </p>
  
  <pre><code>var storage = window.localStorage;
  storage.setItem("information", myArray);
  window.location = "summary.html";
  </code></pre>
  
  <p>And in the file summary.js, I use:</p>
  
  <pre><code>var storage = window.localStorage;
  var myArray = storage.get("information");
  </code></pre>
  
  <p>When I run this, myArray only returns undefined. I know that it is fully defined right before I call <code>window.location = "summary.html";</code>. My best guess to the problem right now is that there is an error in either storing or retrieving an array, at least the way I'm doing it. Can you not pass Arrays through localStorage, or am I doing something wrong?</p>